feat(volumes): add Filestore Volume API and Box mount dispatch #2732
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2732"
general
weight: 0.35
DorianZheng
Summary
Expose Filestore as a Volume backend and carry its mount references through Box create, start, and restart. This PR owns the public API and dispatch layer.
Design doc: https://github.com/boxlite-ai/boxlite/issues/2695
Documentation: Volume and Box lifecycle.
Runner NFS mounting and capability reporting from #2722, and instance lookup, placement configuration, and IAM from #2731, are already in
main.Included:
volume.instancemigration and Filestore handling in the existing Volume lifecycle.server/exportremain internal dispatch data. Job creation and final reconciliation logs use allowlisted fields rather than raw database errors.Excluded:
Evidence
After: The API persists the logical instance, resolves a fresh target for each dispatch, rejects runners without the
filestorecapability, and sends the complete internal mount reference. Public responses and errors expose only logical identifiers.b984c7abc:- 38 related non-integration API suites / 457 tests passed.
- Config routing and capability discovery: 37 tests passed.
- Runner Start regression group passed: old-API Filestore reference rejection, Filestore preparation error propagation, and object-storage fallback preservation.
- Unreadable-record regression coverage was added; final post-fix local execution was stopped by request and platform validation is delegated to CI.
- 40 OpenAPI tests passed.
-
make build:apps:apipassed, including all 37 production entity metadata checks.- TypeScript lint passed with 0 errors; Go formatting passed.
Merge Danger
Door: Two-way before external adoption. The
volume.instancemigration is additive and can remain if the code is reverted; the public backend contract still needs compatibility care once clients use it.Blast Radius: Filestore Volume lifecycle and Box create/start/restart/delete dispatch, plus the Runner start metadata replay guard.
Object-storage Volumes retain their existing provisioning and mount fallback. Runner-side mount safety comes from #2722, while this PR prevents dispatch to runners that have not declared support, keeps stopped Boxes retryable when support is temporarily unavailable, and refuses to silently convert a recorded Filestore mount into an object-storage start after API version skew.