René's URL Explorer Experiment


Title: fix(mothership): let Chat read its own permission config and file version history by waleedlatif1 · Pull Request #8839 · simstudioai/sim · GitHub

Open Graph Title: fix(mothership): let Chat read its own permission config and file version history by waleedlatif1 · Pull Request #8839 · simstudioai/sim

X Title: fix(mothership): let Chat read its own permission config and file version history by waleedlatif1 · Pull Request #8839 · simstudioai/sim

Description: Summary workspaces permission-config and files versions list|describe|read|revert answered every Chat call with 403 This operation is unavailable through Mothership, because their use cases admitted no delegated caller permission_groups.read_user_config now admits Copilot delegation (sim:settings) through the same use case. Chat reads the delegating member's own group config in the chat's workspace. The use case resolves the subject user instead of reading principal.userId files.versions.list, .read, .read_content and .revert now admit Copilot delegation through the existing workspace-file funnel (sim:workspace-files). Chat gets the delegating user's role and files.use capability, pinned to its workspace Version text reads from Chat go through the same secret-provenance delivery observer as current-file reads: the snapshot's provenance is imported into the chat's secret registry, and a read without a registry fails with 503 before any bytes reach the model files.versions.delete (irreversible purge) and files.versions.download (raw bytes) stay direct-only. The policy comment that deferred delegated version access now records this split Workspace API key and direct-caller admission are unchanged. Executor delegation is not added copilot-refused-routes.json regenerated from the route inventory (the source for the CLI's mothershipUnavailable flag): version delete and download stay listed as refused Type of Change Bug fix Testing New lib/permission-groups/__integration__/copilot-permission-config.integration.ts (real Postgres, Chat's in-process CLI transport, real route and use case): two members each read their own group; a chat pinned to another workspace and a user with no workspace role are both refused with 404 NOT_FOUND. Before the fix all 3 failed; after, 3/3 pass New lib/workspace-files/__integration__/copilot-file-versions.integration.ts (real Postgres, local storage, Chat's composed file-read and scoped transports): a read-only member lists and describes versions a historical version holding a secret reaches the model only as [REDACTED_SECRET], and the same read without a provenance registry answers 503 a writer reverts, with the audit recorded as the delegated Copilot actor a read-only member's revert is refused with INSUFFICIENT_WORKSPACE_ROLE version delete and download still answer 403 for Chat Before the fix 4 of 5 failed (the direct-only guard passes both ways); after, 5/5 pass Existing lib/permission-groups, lib/workspace-files, lib/api/server/routes, app/api/v2/files, app/api/v2/workspaces, lib/mothership/agent-cli, lib/core/application suites pass (session, personal-key, OAuth and workspace-key cases unchanged) bun run lint, bun run type-check, bun run check:audits (58), docs-manifest:check, block-registry check, root bun run test (one timeout in lib/mothership/agent-cli/services.test.ts under full-suite load; the file passes on its own and does not touch these operations) Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) 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 workspaces permission-config and files versions list|describe|read|revert answered every Chat call with 403 This operation is unavailable through Mothership, because their use cases admitt...

X Description: Summary workspaces permission-config and files versions list|describe|read|revert answered every Chat call with 403 This operation is unavailable through Mothership, because their use cases admitt...

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

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:3a6e2924-d1f2-164a-49f1-7a45d898012f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD64:1C8E04:DEFA02:132453F:6AFB5EA8
html-safe-nonce1f6182002943b6f73d0921558ed98d15a1b7aecce765d2df29acd32ecbc7ceaf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDY0OjFDOEUwNDpERUZBMDI6MTMyNDUzRjo2QUZCNUVBOCIsInZpc2l0b3JfaWQiOiI0NjQyOTI2MzMyNDMzMDk2MzYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfb9159ea9552c33d51186019d39c0eee49d78eb13a2f1af04d3c2020ffb9f198
hovercard-subject-tagpull_request:4796398818
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/8839/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 workspaces permission-config and files versions list|describe|read|revert answered every Chat call with 403 This operation is unavailable through Mothership, because their use cases admitt...
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/8839/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8839%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%2F8839%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/8839/files
Reloadhttps://github.com/simstudioai/sim/pull/8839/files
Reloadhttps://github.com/simstudioai/sim/pull/8839/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/chat-own-config-file-versionshttps://github.com/simstudioai/sim/tree/fix/chat-own-config-file-versions
Conversation 5 https://github.com/simstudioai/sim/pull/8839
Commits 2 https://github.com/simstudioai/sim/pull/8839/commits
Checks 47 https://github.com/simstudioai/sim/pull/8839/checks
Files changed https://github.com/simstudioai/sim/pull/8839/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8839/files
fix(mothership): let Chat read its own permission config and file version history https://github.com/simstudioai/sim/pull/8839/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/8839/files
1181fb1 fix(mothership): let Chat read its own permission config and file ver… waleedlatif1 Oct 9, 2026 https://github.com/simstudioai/sim/pull/8839/commits/1181fb13191efed1d399030f464caafbdd36c1bf
3ba41c8 chore(mothership): refresh the refused-routes inventory for permissio… waleedlatif1 Oct 9, 2026 https://github.com/simstudioai/sim/pull/8839/commits/3ba41c898dcbaa774eee81ad28cfbb0f812ae869
Clear filters https://github.com/simstudioai/sim/pull/8839/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8839/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8839/files
copilot-refused-routes.json https://github.com/simstudioai/sim/pull/8839/files#diff-0724baf4a289e6aa017684dedab1213bc969359b55245ff3ea13666a4c8d6118
copilot-route-inventory.test.ts https://github.com/simstudioai/sim/pull/8839/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
copilot-permission-config.integration.ts https://github.com/simstudioai/sim/pull/8839/files#diff-54e15e327385fbdbc6f1a61145943baafe117711db0a32f05d7a1619c65b6de6
operations.ts https://github.com/simstudioai/sim/pull/8839/files#diff-6fe799751eeab9448dfe86c2165844617fc6fe973cd44c044aca00f1b76908df
read-user-config.ts https://github.com/simstudioai/sim/pull/8839/files#diff-a9a69d1ca48e7ccb8e6d49e9f819996601a8231f8f3c0b79a143b3a29a94b59b
copilot-file-versions.integration.ts https://github.com/simstudioai/sim/pull/8839/files#diff-192f54b5313876ab03243b3d80fab15281c3484e712e11c2e770e3ee0d4656f5
operations.ts https://github.com/simstudioai/sim/pull/8839/files#diff-ee398303387f3b37518430fab0f0c7167b5ab63ca2ebf290699c33f78ce899b3
apps/sim/lib/api/server/routes/copilot-refused-routes.jsonhttps://github.com/simstudioai/sim/pull/8839/files#diff-0724baf4a289e6aa017684dedab1213bc969359b55245ff3ea13666a4c8d6118
View file https://github.com/simstudioai/sim/blob/3ba41c898dcbaa774eee81ad28cfbb0f812ae869/apps/sim/lib/api/server/routes/copilot-refused-routes.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8839/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8839/files#diff-0724baf4a289e6aa017684dedab1213bc969359b55245ff3ea13666a4c8d6118
https://github.com/simstudioai/sim/pull/8839/files#diff-0724baf4a289e6aa017684dedab1213bc969359b55245ff3ea13666a4c8d6118
https://github.com/simstudioai/sim/pull/8839/files#diff-0724baf4a289e6aa017684dedab1213bc969359b55245ff3ea13666a4c8d6118
https://github.com/simstudioai/sim/pull/8839/files#diff-0724baf4a289e6aa017684dedab1213bc969359b55245ff3ea13666a4c8d6118
apps/sim/lib/api/server/routes/copilot-route-inventory.test.tshttps://github.com/simstudioai/sim/pull/8839/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
View file https://github.com/simstudioai/sim/blob/3ba41c898dcbaa774eee81ad28cfbb0f812ae869/apps/sim/lib/api/server/routes/copilot-route-inventory.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8839/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8839/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
https://github.com/simstudioai/sim/pull/8839/files#diff-fb5d28d5bf1396cdae9c7a6db6d8f3039b8928df5637d35d5e5fe4ebbf666bf9
apps/sim/lib/permission-groups/__integration__/copilot-permission-config.integration.tshttps://github.com/simstudioai/sim/pull/8839/files#diff-54e15e327385fbdbc6f1a61145943baafe117711db0a32f05d7a1619c65b6de6
View file https://github.com/simstudioai/sim/blob/3ba41c898dcbaa774eee81ad28cfbb0f812ae869/apps/sim/lib/permission-groups/__integration__/copilot-permission-config.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8839/{{ revealButtonHref }}
apps/sim/lib/permission-groups/application/operations.tshttps://github.com/simstudioai/sim/pull/8839/files#diff-6fe799751eeab9448dfe86c2165844617fc6fe973cd44c044aca00f1b76908df
View file https://github.com/simstudioai/sim/blob/3ba41c898dcbaa774eee81ad28cfbb0f812ae869/apps/sim/lib/permission-groups/application/operations.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8839/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8839/files#diff-6fe799751eeab9448dfe86c2165844617fc6fe973cd44c044aca00f1b76908df
https://github.com/simstudioai/sim/pull/8839/files#diff-6fe799751eeab9448dfe86c2165844617fc6fe973cd44c044aca00f1b76908df
apps/sim/lib/permission-groups/application/read-user-config.tshttps://github.com/simstudioai/sim/pull/8839/files#diff-a9a69d1ca48e7ccb8e6d49e9f819996601a8231f8f3c0b79a143b3a29a94b59b
View file https://github.com/simstudioai/sim/blob/3ba41c898dcbaa774eee81ad28cfbb0f812ae869/apps/sim/lib/permission-groups/application/read-user-config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8839/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8839/files#diff-a9a69d1ca48e7ccb8e6d49e9f819996601a8231f8f3c0b79a143b3a29a94b59b
https://github.com/simstudioai/sim/pull/8839/files#diff-a9a69d1ca48e7ccb8e6d49e9f819996601a8231f8f3c0b79a143b3a29a94b59b
Please reload this pagehttps://github.com/simstudioai/sim/pull/8839/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8839/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.