pingqiuandClaude Opus 5.5 0442e4cfc7 storage: red tests, the v1.0.x upgrade seeds after a clean stop
A seam: ChunkCleanStop (the proof a start reads before its claim: HEAD a
committed, idle detach of this root's lineage at a position), upgradeSeed
(the proof, the attached HEAD, the zero chunk's hash) and
upgradeChunkRecordSeeded, which ignores the seed for now.

- TestUpgradeSeedsAfterACleanStop: with the proof at the store's synced
  position and the store's own lineage, every whole local chunk is HP with
  HEAD's hash (zero in HEAD: the zero chunk's). Fails here: U.
- TestUpgradeSeedCrashAtEachStep: a crash after the seeded pages and before
  the field rebuilds without trusting them; after the field the marked store
  never seeds; after the header the complete record is used as written.
  The first and last fail here (no seeded pages are written).
- Guards that hold here and must keep holding: no seed when the store is
  above or below the proof (an acknowledged write after the detach; the
  checkpoint position is not the store's), for another or no recorded
  lineage, without a proof, or when HEAD moved since the proof.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 06:02:28 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%