feat(sdks): expose ExportOptions include_memory across C, Go, Python, and Node SDKs #3105
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 299 lines diff across 3 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.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3105"
general
weight: 0.35
DefeatMan
TL;DR
Exposes
ExportOptions { include_memory }across the C FFI, Go, Python, and Node.js SDKs so callers (includingapps/runner) can request full checkpoints while preserving existing disk-onlyexportdefaults.Design doc: https://github.com/boxlite-ai/boxlite/issues/3109
Documentation: [docs/reference/c/README.md](docs/reference/c/README.md), [sdks/go/README.md](sdks/go/README.md), [docs/reference/python/README.md](docs/reference/python/README.md), [docs/reference/nodejs/README.md](docs/reference/nodejs/README.md)
How it works
Every SDK keeps its existing disk-only default and forwards the opt-in memory flag into
boxlite::ExportOptions { include_memory }:sdks/c): addsCExportOptions { int include_memory; }andboxlite_box_export_with_options(regenerated intoboxlite.hviacbindgen);boxlite_box_exportdelegates withNULL. For example, callingboxlite_box_export_with_options(handle, dest, &opts, cb, user_data, &err)copiesopts.include_memory != 0synchronously before spawning the async export task, so mutating or poppingoptsafter return cannot affect the task.sdks/go): addsExportOptions { IncludeMemory bool }andBox.ExportWithOptions, reusing the existing export callback bridge (Box.Exportdelegates withExportOptions{}).sdks/python): addsinclude_memory: bool = False(getter/setter +__repr__) toExportOptionsand forwards it inFrom<PyExportOptions> for ExportOptions.sdks/node): addsinclude_memory: Option<bool>(includeMemory?: booleaninJsExportOptions, re-exported fromlib/index.ts) and mapsNone/falseto disk-only.Verification
make test:unit:ffi && make lint:c→ 161 FFI unit tests passed (including loopback REST drain tests forinclude_memory=1,NULL, and0); C lint passed.make test:unit:python && make lint:python→ Python unit tests and lint passed.make test:unit:node && make lint:node→ 125 Vitest + 48 Rust unit tests passed; Node lint/typecheck passed.make lint:go→ passed (make test:unit:gopassed 219 top-level tests one6f2940de; no Go source changes ine388bd874).Quality autofix (fmt + lint checks)passed one388bd874.Unsupported(orInvalidStatewhen an embedded box is not running with live VM state).