fix(sandbox): restore writable files with Docker live checkpoints #1564
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 221 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.323
Real PR Conversation Timeline
1 comments
"Review active on #1564"
general
weight: 0.35
cursor[bot]
Stacked on #1563, which adds the Calc regression fixture.
Docker's process checkpoint could resume a running workbook with an older filesystem. The worker now captures CRIU state and commits the writable layer during one pause. It thaws the parent before exporting the layer. Restore verifies the local parent image ID and supports older process-only artifacts.
Concurrent leases share the reconstructed image and serialize checkpoint starts on the same Docker daemon. Each offline child has its own loopback interface. The worker waits up to 15 seconds to confirm Docker removed each container. In an earlier eight-child run, all workbook checks passed but Docker took 6.66 seconds to remove one child.
Verification
On Ubuntu 24.04.5 with Docker 29.1.3 and CRIU 4.3.1:
All 54 Docker provider integration tests, four checkpoint-focused worker unit tests, and both default Bazel test targets passed. Targeted Clippy, formatting and ignored-test inventory checks passed. The file-size ratchet separately reports a pre-existing E2B violation on the base branch.
Host requirements
The worker needs temporary disk space for a base-image export, visibility of the daemon's task PIDs and cgroups, and permission to enable loopback using
nsenterandip. External volumes retain their own storage lifecycle.