Unmount guest rootfs components when deleting tasks #313
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 196 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #313"
general
weight: 0.35
dmcgowan
Task deletion unmounts
<bundle>/rootfs, butmountutil.Allalso mounts the rootfs components under the sibling<bundle>/mounts/<index>paths. Those backing mounts survive deletion. For a writable block filesystem, stopping the VM can consequently leave the filesystem requiring journal recovery.Unmount the component tree after unmounting the overlay root. Log and return component cleanup failures, preserving any earlier deletion error. Containers without component mounts keep the existing no-op behavior.
The commits deliberately separate the reproducer from the fix:
1. Add
TestInitDeleteUnmountsRootfsComponentsand a privileged Linux CI step. The test uses production mount setup and deletion, two real tmpfs component mounts and an overlay root, in an isolated mount namespace. Only the OCI runtime delete command is stubbed. On the first commit it fails because both component mounts remain present in the mount table.2. Add the missing component cleanup. The same test passes.
The privileged CI step compiles as the normal runner user and elevates only the test executable. It requires the mount test to run rather than accepting a permissions-related skip.
Validation: