← Back to Pull requests

Update the Ray Sandboxing REP with the design as built #80

Open
unknown opened this pull request with 237 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 03, 2026 14:51 UTC
Author

Why

The Ray Sandboxing REP (#69) describes the gVisor design as proposed. Since then the implementation changed several of its parts, and running it at scale (a 352-CPU NVIDIA Vera node with 64 KiB pages, and CoreWeave and EKS clusters) drove more design changes that are now in open PRs. This updates the REP so it describes the design as it stands.

What changed in the REP

  • Corrected in place: component names (GVisorSandboxBackend), bundle paths, one runsc run launch process per sandbox, container images cached as EROFS files, file transfer through runsc exec, cgroup limits that fail closed, and sandboxes that stop with their owner, with reclaim of what they leave.

  • New "Design updates (November 2026)" section, with the measurements and PRs behind each change:

  • - Warm pools in SandboxRuntime: fixed-size slots, refilled on delete (ray-project/ray#67077).
    - The warm pool store, which a database of permits can back. It is an index, not the claim authority. The open problem of exact claims is listed as future work (ray-project/ray#67728).
    - Multi-sandbox actors: one owner lock per process instead of two open files per sandbox (ray-project/ray#67731).
    - runsc's root directory (ray-project/ray#67729, google/gvisor#16902, #16903).
    - The start-up path, and why bursts slow down: pivot_root(2) walks every host thread (google/gvisor#16901).
    - Sizing guidance, and the arm64 fixes (google/gvisor#16814, #16815).
  • Test plan: the benchmarks these changes are measured with.
  • Checkpoint and restore stay in their own REP (#77). This PR doesn't touch the follow-on line that #77 edits, so the two don't conflict.

    Notes

  • Not a duplicate: the only open PR in this repo that matches "sandbox" is #77.

  • I used Claude Code to help write this update. I checked its descriptions of the code against ray-project/ray master and the linked PRs' branches.
  • Diff: 237 lines (+177 / -60) across 2 files Reviewer: andrewsykim Review duration: 20179m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 237 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.327
    Real PR Conversation Timeline
    1 comments
    "Review active on #80"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.8% · Safe to merge
    19.8%