| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:62935d0d-e06d-ad0e-8186-4d7d3f5401e8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 93C2:FB9FD:BD9002:105115F:6AFB5698 |
| html-safe-nonce | 253d90f3cc26dca5d668ed151e8aef743740741afb067f05d7ae254e8e3ad4ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0MyOkZCOUZEOkJEOTAwMjoxMDUxMTVGOjZBRkI1Njk4IiwidmlzaXRvcl9pZCI6IjU0NDEwMzA0OTEyNDkyNjgzNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 21e76c8dc5f3f0bbfbdf0fd34df6089a54ebc909a4b66fe0bfc8f9f7ab58f214 |
| hovercard-subject-tag | pull_request:4854728127 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9015/files |
| twitter:image | https://avatars.githubusercontent.com/u/129460234?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/129460234?s=400&v=4 |
| og:image:alt | Summary
Unify file mutation accounting, retained-version cleanup, and owner-scoped retention.
Part 1 of the five-PR split of #8610. Provides the storage foundation for core Project files; no schem... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cbf66c024bb6d10e6955baa7413c54cf13a201bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/9015/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9015%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9015%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 |
| Reload | https://github.com/simstudioai/sim/pull/9015/files |
| Reload | https://github.com/simstudioai/sim/pull/9015/files |
| Reload | https://github.com/simstudioai/sim/pull/9015/files |
| simstudioai | https://github.com/simstudioai |
| sim | https://github.com/simstudioai/sim |
| Code | https://github.com/simstudioai/sim |
| Issues129 (129) | https://github.com/simstudioai/sim/issues |
| Pull requests197 (197) | 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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| mzxchandra | https://github.com/mzxchandra |
| staging | https://github.com/simstudioai/sim/tree/staging |
| codex/project-files-storage | https://github.com/simstudioai/sim/tree/codex/project-files-storage |
|
Conversation
26
| https://github.com/simstudioai/sim/pull/9015 |
|
Commits
5
| https://github.com/simstudioai/sim/pull/9015/commits |
|
Checks
55
| https://github.com/simstudioai/sim/pull/9015/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/9015/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9015/files |
|
refactor(files): unify mutation accounting and retention
| https://github.com/simstudioai/sim/pull/9015/files#top |
|
Show all changes
5 commits
| https://github.com/simstudioai/sim/pull/9015/files |
|
7e0fcbf
refactor(files): unify mutation accounting and retention
mzxchandra Oct 14, 2026
| https://github.com/simstudioai/sim/pull/9015/commits/7e0fcbfdfd8fed9cef3ec2873041fb54d953907a |
|
0d59b03
fix(files): serialize retention with history mutations
mzxchandra Oct 14, 2026
| https://github.com/simstudioai/sim/pull/9015/commits/0d59b037524c2166691308273a98f1ac4d8b654b |
|
f400161
Merge remote-tracking branch 'origin/staging' into codex/project-file…
mzxchandra Oct 14, 2026
| https://github.com/simstudioai/sim/pull/9015/commits/f40016146816745d5d1f24ced0bb14f9300c18a9 |
|
a2718d2
test(files): use shared reconciliation logger mock
mzxchandra Oct 14, 2026
| https://github.com/simstudioai/sim/pull/9015/commits/a2718d27811b08f4abeb9613563632ae303f29d2 |
|
2844453
test(files): require injected folder rollback failure
mzxchandra Oct 14, 2026
| https://github.com/simstudioai/sim/pull/9015/commits/2844453dffa3242789605b29fe3e9d5e02e4f78d |
|
Clear filters
| https://github.com/simstudioai/sim/pull/9015/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9015/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9015/files |
|
cleanup-file-versions.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701 |
|
cleanup-soft-deletes.test.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-7e22c35b1e0f894a4804c728a349279bf85c81dc84d790ce61e3fa8af30c66ea |
|
cleanup-soft-deletes.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-0d27a0e21a9e9287bfa78ce2693f0694d417ae9bde9b2379b06f1d7bdd4052d6 |
|
accounting.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-ff0343c57f192e71ae21ab156c55be3e5c6e21c203caf3824f82e83f3d4c59b6 |
|
index.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-aaefc952edab3469e4d7e06d26bc46b81d466fa95d8cac3c5d4a60831a4ad03a |
|
payer-transfer.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-66f6f1ec81e3502fef82cb83982b15f172b097741c280edadef62ef919ac61b1 |
|
project-accounting.integration.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-1af10e8f2043214f78fca0fd4436b27aa8412930952e550b7f12c50e5a34f705 |
|
tracking.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-6fd53176883b29868eaf2da3c52a8bcab3fecdd0af61802d5303a8149f3c9ba9 |
|
folders.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-c5261e79a92d2381ebbeec8517f4bfbef43ba650c20685237e4188db7735722e |
|
index.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-4a85b778bef5de783aceb32bd32d7d4f76a0233bd29ed7e8dfd736357c6fc936 |
|
legacy-archive.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-6089aff8e1e81b6cbdeb070a5ab8b834b5795b67f3348259da85c8382182b8ab |
|
service.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-4f43a429ba71be125f6497643b4dddb28f17512987da3194ace0f4648c75c647 |
|
types.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-f7671ce75cc09d0d6b446cc64e4d06995c7d5c898ffc6b47aa44c09023f0620f |
|
versions.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-b589daab405847c9c8cc7efbcfa85311628b22f3d3fea7e3c8d78d336a9bf163 |
|
workspace-versions.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-222526b298dea38802c4f64b4ffb9c99e14e4203a2475725b0b2f4d3eb10c29c |
|
private-purge.integration.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-98ba32891bfdd92cd30b0f6ad61b3cfcd3f69f78e3f57e09824b538cdc4a6e9c |
|
retention.integration.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-d21d07d2397a487b8dbcbcb8110810642e3adb415e815810564c1d4bfe8472ec |
|
retention.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-3e31256cea82e360b1569029164aed56d584f82789b0b2df013f26a3599c9649 |
|
file-versions.integration.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-48ce617ec6384d071ef3e943e8395798a26f850d04a0fbd005cab3626ec26bc2 |
|
workspace-file-folder-manager.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-7ab6712e7e7b3b214000c022f68393bf7da60abb4ec2a557d5fa912f10c245cc |
|
workspace-file-manager.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34 |
|
workspace-file-storage-accounting.test.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-f378b2028cfe58a78cf40ac52d4ccc66a70f0da843d1ac137ebb9177c22a8b59 |
|
workspace-file-storage-billing.test.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-8d6fe70b6bed8e2b9ed39e4e78b3936b539186c1e8b41f76e92e7bce194d9999 |
|
content-effects.test.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-c9e3bb69884ce3d1db187b170b48099bae468635aa58481a83a4b0c626553258 |
|
content-effects.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-e890a8ec70966bcb0a07ac94493bcdd9c0eac35e0ebb7dc0fbd7385e64afb2bb |
|
ownership.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-711bda7079f71dc63c8028094896a81833839bdc9c7d5ad90d2816eb5fdcc97b |
|
billing-storage.mock.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-1a0fd3affc51bf133f2b43127c829dad143a9a85474070c381ceaaab6a51fc9e |
|
workspace-file-folders.mock.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-c93cd014052b379bffb7e5cddfbb9ddc2a299eea87f766ad783b46d67f383582 |
|
errors.ts
| https://github.com/simstudioai/sim/pull/9015/files#diff-f63e91b89e1f4b1ef06ce3e18986797e5feee754df3ab36a5c15fc5d6596d44f |
|
check-file-names.baseline.json
| https://github.com/simstudioai/sim/pull/9015/files#diff-64ecdf0638baae48b6ce4b0436c085597bdf26d7952b4d9b25f12c8f77a76896 |
| apps/sim/background/cleanup-file-versions.ts | https://github.com/simstudioai/sim/pull/9015/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701 |
|
View file
| https://github.com/simstudioai/sim/blob/2844453dffa3242789605b29fe3e9d5e02e4f78d/apps/sim/background/cleanup-file-versions.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/9015/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/9015/files#diff-153b650f1a7615329564678ab934adfbb092ec35b5272eef03ddc7d9fecf4701 |
| Please reload this page | https://github.com/simstudioai/sim/pull/9015/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/9015/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |