Skip to content

Expose filesystem limits in .NET SDK - #215

Open
jsturtevant wants to merge 1 commit into
filesystem-limits-pythonfrom
filesystem-limits-dotnet
Open

Expose filesystem limits in .NET SDK#215
jsturtevant wants to merge 1 commit into
filesystem-limits-pythonfrom
filesystem-limits-dotnet

Conversation

@jsturtevant

Copy link
Copy Markdown
Contributor

Expose writable filesystem limit configuration through the .NET builder and native FFI, including validation and builder/PInvoke tests.

Stacked on #214 (and therefore #213).

@jsturtevant
jsturtevant force-pushed the filesystem-limits-dotnet branch from cf77cf8 to ed68b5d Compare September 10, 2026 00:08
@jsturtevant
jsturtevant requested a balanced review from Copilot September 10, 2026 00:09
@jsturtevant
jsturtevant added this pull request to stack #216 September 10, 2026 00:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The last-policy-wins test does not verify observable quota behavior or forwarding to native code.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Exposes writable filesystem quota configuration through the .NET SDK and Rust FFI.

Changes:

  • Adds finite and unlimited filesystem-limit builder APIs.
  • Passes quota policies through P/Invoke to both sandbox backends.
  • Adds builder and native validation tests.
File summaries
File Description
src/sdk/dotnet/ffi/src/lib.rs Implements native quota configuration and validation.
SandboxBuilderTests.cs Tests builder configuration flows.
PInvokeLayerTests.cs Tests filesystem-limit native calls.
SafeNativeMethods.cs Declares the new P/Invoke function.
SandboxBuilder.cs Adds public filesystem-limit builder methods.
Sandbox.cs Applies limits during sandbox construction.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
@jsturtevant
jsturtevant force-pushed the filesystem-limits-dotnet branch from ed68b5d to fd25c96 Compare September 11, 2026 19:00
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.

2 participants