René's URL Explorer Experiment


Title: fix(executor): load permission config once per run and retry transient reads by waleedlatif1 · Pull Request #7847 · simstudioai/sim · GitHub

Open Graph Title: fix(executor): load permission config once per run and retry transient reads by waleedlatif1 · Pull Request #7847 · simstudioai/sim

X Title: fix(executor): load permission config once per run and retry transient reads by waleedlatif1 · Pull Request #7847 · simstudioai/sim

Description: Summary Every block runs on a shallow copy of the execution context, so the permission-config memo written onto it was thrown away and the full permission-group config (workspace, org owner, billing state, subscription, group) reloaded from the database before every block Memoize the in-flight load in a run-scoped map shared by every block copy, keyed by governed subject + workspace. Parallel branches share one load, failed loads are evicted, child workflows get their own map Move the bounded transient-read retry (3 attempts, 25-100ms backoff, connection errors only, still fails closed) from the tool-only wrapper into the shared loader. The block-level gate that actually loads first had no retry, so one dropped query failed the whole run Block errors no longer surface a raw database query error (SQL + bound params); the message is replaced like the tool path already does, and only the redacted cause is logged Redact bound params in the execution failure cause log Behavior note: a permission group edit made mid-run now applies from the next run instead of the next block, which matches the original memo design Type of Change Bug fix Testing New tests: cache survives per-block copies, concurrent loads coalesce, per-workspace keys, failed loads evicted, transient retry, no retry on SQL errors, fail-closed on exhaustion, cancellation, no memo on unseeded contexts, root context seeds the cache, block error hides SQL/params Verified the new tests fail against the old code Affected vitest suites, type-check, lint, check:audits all 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)

Open Graph Description: Summary Every block runs on a shallow copy of the execution context, so the permission-config memo written onto it was thrown away and the full permission-group config (workspace, org owner, billi...

X Description: Summary Every block runs on a shallow copy of the execution context, so the permission-config memo written onto it was thrown away and the full permission-group config (workspace, org owner, billi...

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

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:db6291d6-220d-ca74-35f1-161713a73ff2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE198:330459:D9AB1C:133A017:6AFB64CC
html-safe-nonce074c9285703bc5897dd2e7fd0865127e48f1e5fae8f0d14f815094322c9eb5d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTk4OjMzMDQ1OTpEOUFCMUM6MTMzQTAxNzo2QUZCNjRDQyIsInZpc2l0b3JfaWQiOiIzMDAzNjM4ODQ0MjgxODA4MDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc05e7417909bb652632f447278c068834e5090587f2971eec8c63a9d69d39e3b
hovercard-subject-tagpull_request:4532751582
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/7847/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Every block runs on a shallow copy of the execution context, so the permission-config memo written onto it was thrown away and the full permission-group config (workspace, org owner, billi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
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
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7847/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7847%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%2F7847%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/7847/files
Reloadhttps://github.com/simstudioai/sim/pull/7847/files
Reloadhttps://github.com/simstudioai/sim/pull/7847/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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/permission-config-per-runhttps://github.com/simstudioai/sim/tree/fix/permission-config-per-run
Conversation 7 https://github.com/simstudioai/sim/pull/7847
Commits 2 https://github.com/simstudioai/sim/pull/7847/commits
Checks 32 https://github.com/simstudioai/sim/pull/7847/checks
Files changed https://github.com/simstudioai/sim/pull/7847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7847/files
fix(executor): load permission config once per run and retry transient reads https://github.com/simstudioai/sim/pull/7847/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/7847/files
130140f fix(executor): load permission config once per run and retry transien… waleedlatif1 Sep 15, 2026 https://github.com/simstudioai/sim/pull/7847/commits/130140fa97e54fedba2311b2e6f4f1d6075b3fa4
ffae2f3 fix(executor): honor caller cancellation in unshared permission loads waleedlatif1 Sep 15, 2026 https://github.com/simstudioai/sim/pull/7847/commits/ffae2f3316e8f39f2c330b64c6bf64b67f18b914
Clear filters https://github.com/simstudioai/sim/pull/7847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7847/files
permission-check.ts https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
permission-gate-subject.test.ts https://github.com/simstudioai/sim/pull/7847/files#diff-9dbc963392f61d3e7b2c4aaa81c12908b7a918dbfd36ff711c5262c2a2cdfac0
block-executor.test.ts https://github.com/simstudioai/sim/pull/7847/files#diff-b76eeaee96a210d526df253bbde9f1f763a75c3680c3a915569cdf9feed8b39c
block-executor.ts https://github.com/simstudioai/sim/pull/7847/files#diff-56a5432011895e99101ab4af087446b215bca1a2b216e3c44a5087a11223000d
executor.test.ts https://github.com/simstudioai/sim/pull/7847/files#diff-566018bae9e15f4be75dbbd3a4b910753cb4053ff3c755d7897415d1a43d6f67
executor.ts https://github.com/simstudioai/sim/pull/7847/files#diff-749f8b453a93eaba5cab96f549bbc618400c2aead886a3444c868730c511dc1b
types.ts https://github.com/simstudioai/sim/pull/7847/files#diff-b266de0e8311cee15872078a12705439e0d9b58ab87b7685752a0b3ea60cd378
database-query-error.ts https://github.com/simstudioai/sim/pull/7847/files#diff-cf6e94b59b4aee4f1da25a44f05ef7761fb17ce8ef29652f7d40941a1f51db20
execution-core.ts https://github.com/simstudioai/sim/pull/7847/files#diff-2a32d546272efa06e3cbe2ccce1cf4e69c74ff37fe98253bcb2742ffed5bae4b
index.test.ts https://github.com/simstudioai/sim/pull/7847/files#diff-9ba0f7033f9247e496b4f9e0f46183a13c79b1bb48d721ba4bf042bdd08e4dd0
index.ts https://github.com/simstudioai/sim/pull/7847/files#diff-47ae0066fea628681d98d136239929a240a55aaf3d99ef293c83b3eca7e197c1
apps/sim/ee/access-control/utils/permission-check.tshttps://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
View file https://github.com/simstudioai/sim/blob/ffae2f3316e8f39f2c330b64c6bf64b67f18b914/apps/sim/ee/access-control/utils/permission-check.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7847/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
apps/sim/ee/access-control/utils/permission-gate-subject.test.tshttps://github.com/simstudioai/sim/pull/7847/files#diff-9dbc963392f61d3e7b2c4aaa81c12908b7a918dbfd36ff711c5262c2a2cdfac0
View file https://github.com/simstudioai/sim/blob/ffae2f3316e8f39f2c330b64c6bf64b67f18b914/apps/sim/ee/access-control/utils/permission-gate-subject.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7847/files#diff-9dbc963392f61d3e7b2c4aaa81c12908b7a918dbfd36ff711c5262c2a2cdfac0
https://github.com/simstudioai/sim/pull/7847/files#diff-9dbc963392f61d3e7b2c4aaa81c12908b7a918dbfd36ff711c5262c2a2cdfac0
https://github.com/simstudioai/sim/pull/7847/files#diff-9dbc963392f61d3e7b2c4aaa81c12908b7a918dbfd36ff711c5262c2a2cdfac0
https://github.com/simstudioai/sim/pull/7847/files#diff-9dbc963392f61d3e7b2c4aaa81c12908b7a918dbfd36ff711c5262c2a2cdfac0
Please reload this pagehttps://github.com/simstudioai/sim/pull/7847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7847/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.