René's URL Explorer Experiment


Title: fix(pii): mask offloaded large payloads chunk-by-chunk instead of aborting at 16MB by TheodoreSpeaks · Pull Request #5810 · simstudioai/sim · GitHub

Open Graph Title: fix(pii): mask offloaded large payloads chunk-by-chunk instead of aborting at 16MB by TheodoreSpeaks · Pull Request #5810 · simstudioai/sim

X Title: fix(pii): mask offloaded large payloads chunk-by-chunk instead of aborting at 16MB by TheodoreSpeaks · Pull Request #5810 · simstudioai/sim

Description: Summary Block outputs past the 16MB inline materialization ceiling aborted the run before masking even started — the redaction path hydrated the whole offloaded value at once and the pre-flight size assert fired on the manifest's total byteSize Large-array manifests now redact chunk-by-chunk: page one stored chunk at a time, mask, re-store, rebuild via the manifest writer (preview regenerated from masked items, bookkeeping recomputed + asserted). Peak heap stays ~one chunk regardless of payload size Single refs up to the 64MB durable cap hydrate with a raised budget and run serially outside the concurrency pool (one 30MB hydration holds ~2-3x its size in transient heap; 4 at once would OOM the medium-1x trigger.dev machines) Mask-batch chunk requests retry transient failures (network errors, 408/429/5xx honoring Retry-After, runtime-level timeouts, socket closes) with jittered backoff — a single ALB blip or Presidio pod restart no longer fails a whole payload's redaction, and on the execution-altering stages no longer aborts the run Fixed a latent double-mask: a nested ref whose masked value shrinks back under the offload threshold got re-inlined and masked twice (wrong for custom patterns); string pass now runs before ref substitution Sidecar: NER_ENTITIES now intersects the SpacyRecognizer's claimed entities with what the loaded models' NER labels can actually produce. Presidio's default mapping claims PHONE_NUMBER/AGE/ID/EMAIL for transformer backends spaCy can't emit, so any rule naming PHONE_NUMBER silently forced the full spaCy pass and the regex-only fast path never fired Type of Change Bug fix Testing End-to-end against a live stack (local Presidio + S3 + dev DB): a 26.2MB / 40k-record function output that previously aborted instantly now masks in ~3.2min on a single sidecar worker with the realistic entity set (all 265 batches on the regex fast path; ~15min projected on full NER before the sidecar fix). All 40k items verified: order/structure preserved across chunks, emails/cards/SSNs/phones masked, manifest preview regenerated from masked content, skip-vs-full span parity confirmed for phones. Unit suites updated: manifest branch had zero coverage (isLargeArrayManifest was stubbed false) — now covered chunk-wise incl. partial-chunk failure in both failure modes. lint, check:api-validation:strict, and full lib/execution+logs+guardrails suites pass. 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) 🤖 Generated with Claude Code https://claude.ai/code/session_01A1JYstmLHk9qMGyBDqYRcJ

Open Graph Description: Summary Block outputs past the 16MB inline materialization ceiling aborted the run before masking even started — the redaction path hydrated the whole offloaded value at once and the pre-flight si...

X Description: Summary Block outputs past the 16MB inline materialization ceiling aborted the run before masking even started — the redaction path hydrated the whole offloaded value at once and the pre-flight si...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a23158cc-1742-c482-9b32-cdf5fc517a4e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB2C4:1E946E:320A897:46078F4:6A634CF9
html-safe-nonce6386e93f19810965757daf4fca056e8c087a6e71fd67775d3c7620bb8e48be92
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkM0OjFFOTQ2RTozMjBBODk3OjQ2MDc4RjQ6NkE2MzRDRjkiLCJ2aXNpdG9yX2lkIjoiMzM5MjU2NDExMDIwMjk4MTYyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ee5c3a53e85b7374576aa474083455c0e37ab435b593854a1138883e8048779
hovercard-subject-tagpull_request:4102584170
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/5810/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 Block outputs past the 16MB inline materialization ceiling aborted the run before masking even started — the redaction path hydrated the whole offloaded value at once and the pre-flight si...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
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
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5810/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5810%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%2F5810%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/5810/files
Reloadhttps://github.com/simstudioai/sim/pull/5810/files
Reloadhttps://github.com/simstudioai/sim/pull/5810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/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
fix/pii-large-payloadhttps://github.com/simstudioai/sim/tree/fix/pii-large-payload
Conversation 21 https://github.com/simstudioai/sim/pull/5810
Commits 6 https://github.com/simstudioai/sim/pull/5810/commits
Checks 19 https://github.com/simstudioai/sim/pull/5810/checks
Files changed https://github.com/simstudioai/sim/pull/5810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/files
fix(pii): mask offloaded large payloads chunk-by-chunk instead of aborting at 16MB https://github.com/simstudioai/sim/pull/5810/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/5810/files
ab8db29 fix(pii): mask offloaded large payloads chunk-by-chunk and retry tran… TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5810/commits/ab8db29305eabe2beed904fffff471484ff2d512
b7c66c0 fix(pii): retry runtime timeouts and socket closes in mask-batch chunks TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5810/commits/b7c66c0e31f5aafbdfb859bf8fc73287da3f732f
e836d99 fix(pii): gate the spaCy fast path on entities the loaded models can … TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5810/commits/e836d998b337e4191fbc0ae806d93d01a7d6e60a
7d05d24 fix(pii): hydrate oversized-chunk manifests serially, not just single… TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5810/commits/7d05d247565c3e6f0807e1f7f18043baf1d289fe
e89845f fix(pii): serialize oversized hydrations globally across nested redac… TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5810/commits/e89845fa5cd9e0b770576ff46ad819af5b585f88
bd2a30a fix(pii): fail fast on a null mask-batch body; use sleep() in gate test TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5810/commits/bd2a30a982c12a0e315d6ff3e4f149c2facf5799
Clear filters https://github.com/simstudioai/sim/pull/5810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/files
server.py https://github.com/simstudioai/sim/pull/5810/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
mask-client.test.ts https://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
mask-client.ts https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
pii-large-values.test.ts https://github.com/simstudioai/sim/pull/5810/files#diff-63d450d307947996b0226e832bb879039001f6a31392376d8535535610de80bf
pii-large-values.ts https://github.com/simstudioai/sim/pull/5810/files#diff-a0945120a671854c94e3a6a40f2a1229e454d7f38be21efe71503ec4765626c9
pii-redaction.ts https://github.com/simstudioai/sim/pull/5810/files#diff-64a20e8a194771f20a82dbaaa6aef740450f4ed6c996783dcfb827f7ec3e1b91
apps/pii/server.pyhttps://github.com/simstudioai/sim/pull/5810/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
View file https://github.com/simstudioai/sim/blob/bd2a30a982c12a0e315d6ff3e4f149c2facf5799/apps/pii/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5810/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5810/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
https://github.com/simstudioai/sim/pull/5810/files#diff-4447adf1c9c684d32a5fd31a17e05677749ef10d0ca6bce34ac9b6263e781a40
apps/sim/lib/guardrails/mask-client.test.tshttps://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
View file https://github.com/simstudioai/sim/blob/bd2a30a982c12a0e315d6ff3e4f149c2facf5799/apps/sim/lib/guardrails/mask-client.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5810/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
https://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
https://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
https://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
https://github.com/simstudioai/sim/pull/5810/files#diff-77561016b13dfbca2b2b243f475008029e59db8a8ac2e2eab47fb1a99f002612
apps/sim/lib/guardrails/mask-client.tshttps://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
View file https://github.com/simstudioai/sim/blob/bd2a30a982c12a0e315d6ff3e4f149c2facf5799/apps/sim/lib/guardrails/mask-client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5810/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/files
https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
https://github.com/simstudioai/sim/pull/5810/files#diff-8e6aeec5304a44062b4a7ecf04cf296b0f71d0ca7ec9567c89bf0718dbfffa97
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5810/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.