Private writable delta
One attempt-local upperdir
Content-defined chunking gives changed file content stable identities below LayerStack’s immutable B/L/S layers. It reduces duplicate payload while keeping the command path on ordinary native OverlayFS.
The storage contract
A sealed checkpoint records a logical tree and immutable delta layers. Within changed regular-file extents, a content-defined chunker derives stable object identities. Those identities make reuse, verification, retention, and later backend projections explicit without replacing OverlayFS with a userspace filesystem.
Capture-to-execution path
Capture reads the quiesced private upperdir, not the merged workspace. The resulting delta can be materialized as an ordinary immutable native lowerdir. A command then reads that lowerdir through OverlayFS with no pack, manifest, or index lookup on the normal command path.
Capture plane
One attempt-local upperdir
Changed allocated bytes only
Stable across reusable content
Typed identity · verified carrier
Durable state plane
Offsets, holes, metadata
Native B/L/S-compatible layer
Newest first · leased root
Native lowerdir projection
Kernel OverlayFS workspace
Command / PTY
Space optimization
The native immutable layer that OverlayFS needs is the normal physical carrier for dense file content. Packed storage is reserved for metadata, small objects, and payload that has no surviving native carrier. The index maps stable identity to verified locations rather than turning every chunk into a permanent duplicate file.
0 added bytes / hot fork
A child leases an existing immutable root; it does not clone it.
Changes only
A private upperdir grows with real writes; a sealed layer stores newly unique content.
Packed + bounded
Manifests, paths, blame, journals, and small objects avoid per-object inode overhead.
Content identity
A changed file can retain reusable content when its boundaries remain stable.
Per hot local fork, not zero total storage. The parent lower root still exists and remains pinned by a lease.
A native extent is normally the durable carrier; the CAS index records its location and integrity receipt.
Publication captures the private upperdir delta. It never persists a merged workspace checkout as the durable delta.
Allocation, reflink behavior, sparse support, and OverlayFS semantics must be measured on the actual Docker-backed Linux storage domain.
Asymptotic accounting
Big-O describes the logical/storage work. Kernel mount setup, filesystem latency, cache state, lower-chain depth, and Docker storage capabilities remain measurable constants or separate gates; they are not erased by the notation.
| Operation / cost | Current whole-file delta | Target CDC delta | What changes |
|---|---|---|---|
| Create / fork a logical child | Time O(1) · Space O(1) | Time O(1) · Space O(1) | No asymptotic change. Both add a NodeId, root reference, lease, and provenance—not a lower-payload copy. |
| Activate a hot local child | Time O(L) · Space O(1) | Time O(L) · Space O(1) | No asymptotic change. Both assemble a lowerdir chain and private runtime state. |
| Capture + seal changed files | Time O(F + P) · Space O(F + P) | Time O(Δ + P) · Space O(U + C + P) | The baseline retains every byte of each changed whole file. CDC retains only new content plus segment and filesystem metadata. |
| Cold hydration | Time O(R) · Space O(R) | Time O(R) · Space O(R) | No asymptotic change. A missing native root must be materialized once before the worker becomes hot. |
| N sequential revisions | Space O(ΣFᵢ) | Space O(ΣUᵢ + ΣCᵢ + ΣPᵢ) | Stable boundaries can retain unchanged regions across versions. |
| Worst-case changed content | Space O(F) | Space O(F) | When every byte is new or boundaries cannot be reused, CDC has no asymptotic space advantage. |
| Command / PTY I/O | Native OverlayFS path | Native OverlayFS path | No CAS reconstruction on either command hot path. |
Current-baseline comparison
The current baseline captures a changed regular file as a whole immutable native-layer payload. It already keeps command execution on native OverlayFS and avoids a full merged-tree clone on a hot session. The CDC target changes the durable payload representation so an edited file can retain content that did not actually change.
file v1·full native payload
file v2·another full payload
file v3·another full payload
chunk A·reused
chunk B′·new
chunk C·reused
Research lanes
All four lanes preserve the same LayerStack B/L/S and native-execution contract. L1 isolates the packed-CAS layout; L2–L4 vary the content-defined boundary algorithm. Their final storage and time behavior must be proven by the same containerized measurement gates.
Controls the hybrid native-carrier / packed-metadata storage layout with frozen selective FastCDC boundaries.
Tests sequential content-defined boundaries and their reuse/CPU trade-off.
Tests exact Gear64 boundaries with scalar/SIMD equivalence requirements.
Tests vectorized asymmetric-extremum boundaries under the same storage contract.
Boundary of the optimization
The product-level root is a logical manifest with paths, file objects, directories, links, metadata, and provenance. Chunking can improve physical deduplication inside file content, but it never changes the meaning of a SandboxNode, grants mount privilege, or makes the target image responsible for storage.