pingqiuandClaude Opus 5.5 681becfff0 chunkstore, storage: settle intents and fork replays; settle a pending detach
Review fixes for the snapshot catalog, fork and Detach:

- Intents stay until the operation's outcome is settled. An exclusive
  create that fails is resolved by re-reading the entry: our entry
  confirms the publish; another entry means our create can never land
  (clean abort); a failed re-read or no entry leaves the outcome unknown
  (it may still land), so the intents are kept and the call reports
  outcome_unknown. A retry with the same request id settles it and
  removes every intent of the operation (by its holder tag).
- Fork records its operation in the target's VOLUME (request id, source,
  snapshot, source gen, the SHA-256 of the snapshot's HEAD document and
  the original result). A retry resolves the target first: a completed
  fork replays the recorded result without reading the source (also
  after the source snapshot is deleting, or the target advanced); a
  request id reused with other parameters is target_exists; an
  incomplete fork resumes only if the snapshot still has the bound image.
- An unresolved Detach mark (CAS outcome and re-read both failed) becomes
  a pending detach that every later capture, durability point and Detach
  settles first: applied means detached, not applied continues, a newer
  holder fences, still unreadable is ErrChunkCASOutcomeUnknown. A cut can
  no longer succeed at the pre-mark generation. Unresolved capture CAS
  outcomes now also wrap ErrChunkCASOutcomeUnknown.

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