Skip to content

fix(isolation): route remaining raw fs writers into data/ through guarded primitives - #6215

Merged
atomantic merged 1 commit into
mainfrom
claim/issue-6203
Sep 4, 2026
Merged

fix(isolation): route remaining raw fs writers into data/ through guarded primitives#6215
atomantic merged 1 commit into
mainfrom
claim/issue-6203

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Closes #6203

Summary of Changes

  • Added guarded filesystem primitives rmGuarded, unlinkGuarded, and createWriteStreamGuarded in server/lib/fileCore.js (re-exported via fileUtils.js and lib/index.js).
  • Converted all remaining raw filesystem writers, unlinks, recursive removes, and write streams targeting data/ across ~40 services and routes into guarded primitives (atomicWrite, writeFileGuarded, copyFileGuarded, rmGuarded, unlinkGuarded, createWriteStreamGuarded).
  • Updated server/lib/testDataIsolation.js header and server/lib/README.md to document full coverage without the caveat.
  • Verified test isolation, import scoping budget (<85,000 instantiations), export barrel/catalog parity, and full server and client test suites.

@atomantic
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
atomantic merged commit 314e80a into main Sep 4, 2026
13 of 24 checks passed
@atomantic
atomantic deleted the claim/issue-6203 branch September 4, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route the remaining ~40 raw fs writers into data/ through the guarded primitives

1 participant