From b26b4eddea2e89b29c600dfb7dbc9715042c1126 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 15:06:30 -0800 Subject: [PATCH] Document list model provenance and typed object names --- seaweed-block/core/frontend/chunkstore/layout_store.go | 4 ++-- seaweed-block/docs/spec/README.md | 6 ++++-- seaweed-block/docs/spec/pagechain/PageChain.tla | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/seaweed-block/core/frontend/chunkstore/layout_store.go b/seaweed-block/core/frontend/chunkstore/layout_store.go index 075c13b669..0b51d793d9 100644 --- a/seaweed-block/core/frontend/chunkstore/layout_store.go +++ b/seaweed-block/core/frontend/chunkstore/layout_store.go @@ -255,8 +255,8 @@ func (s *LayoutStore) Create(ctx context.Context, rel string, raw []byte, sessio if session == "" { return errors.New("chunkstore: object needs a writer session") } - // All object names end in their bytes' SHA-256; do not create a name - // for bytes it does not identify. + // Data names bind their bytes' SHA-256; list names additionally bind + // the page domain. Refuse bytes not authenticated by their typed name. if strings.HasPrefix(rel, layout.ListDir+"/") { if len(raw) > layout.MaxListPageBytes { return layout.ErrMalformed diff --git a/seaweed-block/docs/spec/README.md b/seaweed-block/docs/spec/README.md index 46dfd049f6..b6b0e6061c 100644 --- a/seaweed-block/docs/spec/README.md +++ b/seaweed-block/docs/spec/README.md @@ -697,9 +697,11 @@ integration coverage of the existing RemoteProof transition; the model is unchan ### Immutable list publication and continuation [PageChain](pagechain/PageChain.tla) refines an immutable two-page list behind -a conditional HEAD cursor. Recorded run input and committed model SHA-256: +a conditional HEAD cursor. Recorded run input SHA-256: `1c8d9ad20ae1f27b90b2d3f759229e64501f6fdb4321ef5cbe340841e00feca8`. -The recorded Linux run of this exact model passed safe_chain (150,260 +The committed copy removes an internal provenance name from a comment; its +LF-normalized SHA-256 is `ab298e07298d84fe326cb0d1d8626b4bcd479ea5c8be9b15fbab5f22922d6d9b`. Executable model statements and +configurations are unchanged. The recorded Linux run passed safe_chain (150,260 states), seven must-violate mutations and four reachability witnesses; coverage exit 0. This records the model owner's run, not a rerun by this PR. Configurations and expected results are committed in `pagechain/cfg`. diff --git a/seaweed-block/docs/spec/pagechain/PageChain.tla b/seaweed-block/docs/spec/pagechain/PageChain.tla index 311fdf1de8..eda36db2ff 100644 --- a/seaweed-block/docs/spec/pagechain/PageChain.tla +++ b/seaweed-block/docs/spec/pagechain/PageChain.tla @@ -1,6 +1,6 @@ ------------------------------ MODULE PageChain ------------------------------ (***************************************************************************) -(* V8 page-chain crash rows (claude06, 2026-12-01; #894's list pages). *) +(* V8 page-chain crash rows (2026-12-01; #894's list pages). *) (* CleanList kept a list inside HEAD; here it is a chain of immutable *) (* content-named page objects that HEAD names by its head page. *) (* *)