pingqiuandClaude Opus 5.5 022c9077dd durable, blockvolume: automatic cut scheduler (timer + dirty threshold)
The volume's automatic cuts follow the W3 ruling:
- Timer: a cut is due once ChunkCaptureInterval has passed since the
  last successful cut of any kind; an explicit Cut, Snapshot or Detach
  restarts it.
- Threshold: a cut is due once ChunkDirtyThreshold chunks are dirty
  since the last HEAD. Whichever fires first triggers; zero disables
  either.
- Automatic cuts are at least 1 s apart.
- A failed automatic cut resets nothing and is retried after a backoff
  doubling from 1 s to 30 s.
- A successful cut, including a no-op one (no CAS), clears the backoff
  and restarts the timer.

The decision is a pure policy (cutPolicy), tested with explicit times.
The provider loop polls the layer's Stats every 100 ms for the dirty
count and the last successful cut.

blockvolume defaults: --chunk-capture-interval=30s, and a new
--chunk-dirty-threshold=64 (256 MiB of 4 MiB chunks). The --chunk-*
flags stay refused with other implementations when set away from their
defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:35:16 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%