#6842·dragonfly

shard-serialization P3.15: expand SkipBoth eligibility after targeted validation

Author: romangeCreated Mar 8, 2026Updated Sep 30, 2026
Labelsstale

Phase 3 — Bring non-PIT onto the new foundation (Task 15 of 17)

Goal: Expand cautiously instead of generalizing the hard cases upfront.

Design doc: docs/shard-serialization.md — Technical Roadmap

Dependencies

  • #6841 (P3.14: SkipBoth for narrow subset)

Description

Re-evaluate SkipBoth eligibility for cases excluded in task 14, expanding only when correctness can be proven.

Guidelines

Cases to re-evaluate

  1. `DelayedPending` buckets:

    • Once delayed-entry ownership is explicit (task 5), evaluate whether mutations to a `DelayedPending` bucket can be suppressed.
    • Risk: the delayed baseline for a different key in the same bucket may not yet be emitted.
  2. Inserts:

    • Inserts may touch multiple buckets (home, neighbor, stash) or trigger a segment split.
    • Only expand if bucket-touch coverage can be proven cheaply (e.g., via `CVCUponInsert`-like probing).
    • If the cost of probing approaches the cost of just emitting the journal entry, don't expand.
  3. Tiered keys:

    • Only expand if suppression can be tied to delayed-entry completion.
    • The mutation must be guaranteed to be reflected in the bucket's post-traversal state, including any pending tiered reads.

Approach

  • Each expansion should be gated behind a separate flag or code path.
  • Each requires its own focused test that validates the specific case.
  • Measure actual benefit (via observability from task 2) before merging — if a case is rare, the complexity may not be worth it.

Acceptance criteria

  • Each expanded case has a dedicated test.
  • Observability shows the expanded path is exercised.
  • No regressions in existing test suite.
  • Expansion is incremental — each case can be enabled/disabled independently.