feat(runner): plumb full checkpoint kind and memorySizeBytes through export, upload, and restore #3106
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 · 285 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.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3106"
general
weight: 0.35
DefeatMan
TL;DR
Plumbs checkpoint
kind(disk|full) andmemorySizeBytesthroughapps/runnerexport, upload, acknowledge, and restore flows while keepingmemory_checkpointcapability unadvertised.Design doc: https://github.com/boxlite-ai/boxlite/issues/3109
Documentation: [apps/runner/README.md](apps/runner/README.md)
How it works
ExportCheckpointPayload,Reference, andRestoreRequestaccept optionalkind(defaulting todisk). Under the source operation lease,ExportCheckpointrequiresStateRunningforfull(vsStateStoppedfordisk), callsExportWithOptions(IncludeMemory: true), verifies the exported path is a regular file directly inside the staging directory before readingmemory_checkpoint.memory_size_bytesfrom v8 manifests (leaving cleanup to the staging directory defer), and compares*int64values viaartifactsEqualinstead of pointer addresses.On restore,
r.Kindis checked againstr.Archive.NormalizedKind(), same-operationIdjournal replays normalize omitted""and explicit"disk"kinds before comparing requests, and candidates must bestoppedwithPID == 0(recovery predecessors must bestoppedorfailedwithPID == 0). Before rewritingmanifest.jsonand streaming the tar tail unchanged,checkpointImportArchiverejects v8 archives declared asdiskand validates thatmemory_checkpointpresence andmemory_size_bytesmatch the declaredArtifactkind andmemorySizeBytes.Verification
(umask 022 && go test -count=1 ./pkg/checkpoint/...)(inapps/runner) → passed on6fbc7a9aa, including kind-mismatch,configuredcandidate/predecessor rejection, full export replay, and""/"disk"restore retry normalization regressions.go test -count=1 -v -run 'TestCheckpoint' ./pkg/boxlite/checkpoint_archive.go ./pkg/boxlite/checkpoint_import_test.go(inapps/runner) → passed on6fbc7a9aa(v8-as-disk rejection, manifest kind/size validation, and exported archive path containment/symlink tests).Quality autofix (fmt + lint checks)→ passed on6fbc7a9aa../pkg/boxliteand./pkg/runner/v2/executorlink tests were not re-run locally (submodules not initialized in this worktree); live full export end-to-end requires a VMM backend.