fix(isolation): route remaining raw fs writers into data/ through guarded primitives - #6215
Merged
Conversation
atomantic
enabled auto-merge
September 4, 2026 06:38
…rded primitives (#6203) - Add rmGuarded, unlinkGuarded, and createWriteStreamGuarded primitives to fileCore - Route ~40 raw fs calls (writes, unlinks, removes, streams) across imageGen, videoGen, sprites, writersRoom, pipeline, loras, agents, etc. through guarded primitives - Update testDataIsolation header and server/lib/README.md to document full coverage - Update affected tests to mock or assert on guarded primitives
atomantic
force-pushed
the
claim/issue-6203
branch
from
September 4, 2026 06:39
4fbacee to
6693988
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6203
Summary of Changes
rmGuarded,unlinkGuarded, andcreateWriteStreamGuardedinserver/lib/fileCore.js(re-exported viafileUtils.jsandlib/index.js).data/across ~40 services and routes into guarded primitives (atomicWrite,writeFileGuarded,copyFileGuarded,rmGuarded,unlinkGuarded,createWriteStreamGuarded).server/lib/testDataIsolation.jsheader andserver/lib/README.mdto document full coverage without the caveat.