René's URL Explorer Experiment


Title: refactor(files): unify mutation accounting and retention by mzxchandra · Pull Request #9015 · simstudioai/sim · GitHub

Open Graph Title: refactor(files): unify mutation accounting and retention by mzxchandra · Pull Request #9015 · simstudioai/sim

X Title: refactor(files): unify mutation accounting and retention by mzxchandra · Pull Request #9015 · simstudioai/sim

Description: 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 schema changes. Testing Focused accounting/content-effect tests: 28 passed; cleanup tests: 17 passed. Disposable database: retention/accounting tests passed; all 56 version tests passed after updating failure injection to the shared accounting boundary. Scoped type check and unused-export check passed. Full CI runs on this draft. Type of Change Feature / refactor Checklist Code follows project style guidelines Self-reviewed my changes Focused tests added/updated and passing Full hosted CI passed I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Review stack #9015 — mutation accounting and retention (base: staging) #9016 — core files, history, uploads, realtime #9017 — rendering, derived content, search #9018 — cross-owner copy, extraction, downloads, export #9019 — public sharing Review each against its immediate parent. #8610 is superseded by this stack.

Open Graph Description: 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...

X Description: 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...

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

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:62935d0d-e06d-ad0e-8186-4d7d3f5401e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93C2:FB9FD:BD9002:105115F:6AFB5698
html-safe-nonce253d90f3cc26dca5d668ed151e8aef743740741afb067f05d7ae254e8e3ad4ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0MyOkZCOUZEOkJEOTAwMjoxMDUxMTVGOjZBRkI1Njk4IiwidmlzaXRvcl9pZCI6IjU0NDEwMzA0OTEyNDkyNjgzNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac21e76c8dc5f3f0bbfbdf0fd34df6089a54ebc909a4b66fe0bfc8f9f7ab58f214
hovercard-subject-tagpull_request:4854728127
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/9015/files
twitter:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
og:image:altSummary 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_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/9015/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9015%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%2F9015%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/9015/files
Reloadhttps://github.com/simstudioai/sim/pull/9015/files
Reloadhttps://github.com/simstudioai/sim/pull/9015/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
mzxchandrahttps://github.com/mzxchandra
staginghttps://github.com/simstudioai/sim/tree/staging
codex/project-files-storagehttps://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 pagehttps://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 pagehttps://github.com/simstudioai/sim/pull/9015/files
Please reload this pagehttps://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.tshttps://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 pagehttps://github.com/simstudioai/sim/pull/9015/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9015/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.