From 162ebc99fe64082fa4924639ea41ae2821082316 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 17 Nov 2026 01:37:23 -0800 Subject: [PATCH] docs: clarify record vector scope and separate RED evidence --- .../core/storage/testdata/format_v3/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/seaweed-block/core/storage/testdata/format_v3/README.md b/seaweed-block/core/storage/testdata/format_v3/README.md index ae81357e69..b035e86b4e 100644 --- a/seaweed-block/core/storage/testdata/format_v3/README.md +++ b/seaweed-block/core/storage/testdata/format_v3/README.md @@ -1,9 +1,9 @@ -# Format v3 test-only fixture custody +# Format v3 record vectors -The barrier vector is a literal worked example of DESIGN r12 (SHA in barrier.json). It was constructed independently from the byte table, using reflected Castagnoli polynomial 0x82f63b78, initial/final XOR 0xffffffff. It does not use a production encoder. Nonce 00..0f is deliberately nonzero as a 128-bit value. Fixed prefix 62 bytes; no payload; CRC32C then EntrySize gives 70 bytes. Exact values and raw-file SHA are in barrier.json. +The barrier vector is a worked example of the frozen format byte table (original design SHA in barrier.json; unchanged through the accepted r15 contract). It was constructed independently using reflected Castagnoli polynomial 0x82f63b78 and initial/final XOR 0xffffffff, without a production encoder. Nonce 00..0f is a nonzero 128-bit value. Prefix62 + no payload + CRC32C/footer8 =70 bytes. Literal fields, CRC and raw-file SHA are recorded in barrier.json. -The custody test checks bytes against literals and the standard library CRC32C. It is new-format FIXTURE coverage only, not a parent behavioral RED, product codec acceptance, or v3 recovery PASS. After code GO, the real encoder/decoder must consume this same vector; mutating nonce/cursor/type/count/CRC/footer and lap-placement controls must exercise the product path, not this fixture checker. +The production dark-codec tests encode to and decode from these fixed bytes. This is new-API contract coverage, not a fabricated parent behavioral RED or a claim that production recovery selects v3. Wrong-nonce/current-cursor, correct-nonce/wrong-cursor, lap and physical ring admission belong to the later writer/scanner integration, not codec CRC acceptance. -Existing-caller REDs are in walstore_incarnation_red_test.go and chunk_lsn_map_red_test.go. They intentionally fail on the authorized base. Do not include those failing heads as a green integration claim. +Existing-caller REDs (foreign WAL replay and old/equal-LSN capture omission) remain on the separate evidence branch at655091e8; they are intentionally absent from the green integration branch until the corresponding fixes land. -Row 2 also adds independently constructed batch.bin (count2, LBA3, 8192 bytes of 0x72) and trim.bin (LBA5, affected65536 bytes, no payload), with LSN7/DurableLSN6/cursor128 and the same nonce. Their literal fields, CRC32C and SHA256 are in additional-vectors.json. These vectors exercise nonzero count/LBA/length beyond the barrier. No product encoder generated them. +batch.bin uses count2, LBA3 and8192 bytes of0x72; trim.bin uses LBA5 and affected65536 bytes with no payload. Both use LSN7/DurableLSN6/cursor128 and the barrier nonce. Independent literal fields, CRC32C and SHA256 are in additional-vectors.json. These nonzero count/LBA/length vectors prevent a mutually wrong encoder/decoder from passing only by roundtrip.