docs(invariants): the reader is safe for concurrent reads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-28 23:37:10 -08:00
1 parent 7c3fdd2762
commit 9410227d80
1 file changed
+1
+1
View File
@@ -1136,6 +1136,7 @@ Notes:
| `INV-SNAPK-START-POSITION-001` | A root carrying HEAD's claim id but synced below HEAD's published position is an old copy of that lineage and is refused as stale, at its own epoch and above, HEAD unchanged. | M9 start (before any transition) | `core/frontend/chunkstore/layout` `start.go` `Start` | `TestStart_OldCopyOfTheRightRootRefused`, `TestStart_FreshAcrossACrashContinuesTheRestore` | — (the snapshot kernel model is not in this repository) | ACTIVE |
| `INV-SNAPK-START-CLAIM-001` | A claim is made only by Start, at an epoch above HEAD's, with the local root's claim id; a source scan refuses any other caller of RunClaim. | M9 any → idle (Claim) | `core/frontend/chunkstore/layout` `start.go` `Start`; (source scan) | `TestStart_FreshRootAtHigherEpochClaims`, `TestStart_Refusals`, `TestStart_InterruptAtTheClaim`, `TestGuard_Controls` | — (the snapshot kernel model is not in this repository) | ACTIVE |
| `INV-SNAPK-STALE-HOLDER-001` | Every transition refuses an older epoch of the same server, the same epoch held by another server, and the same epoch and server with another claim id, in idle, snap and clean; a new transition must be added to the table. | M9 every transition | `core/frontend/chunkstore/layout` `Head.heldBy` and each transition | `TestTransitions_RefuseAStaleHolder` | — (the snapshot kernel model is not in this repository) | ACTIVE |
| `INV-SNAPK-READER-CONCURRENT-001` | A `Reader` is safe for concurrent reads: its cache of volume ids is guarded by a leaf lock held only around the cache, never across a fetch, so concurrent first reads of a volume's id agree and cannot fault the process. | Content-named layout (no state transition) | `core/frontend/chunkstore/layout` `read.go` `Reader.VolumeID` | `TestReaderVolumeIDIsSafeForConcurrentReads` (under `-race`) | — | ACTIVE |
Notes: