From 7f381341556a16e79e2f629ac9848750f48de5c4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 00:35:06 +0200 Subject: [PATCH] Caching tests: regenerate leaves-reads.msgpack from the C# reference (11 leaves x 28 tokens, 308 rows) and the README: timestamp rows, any rewrite binds value Co-Authored-By: Claude Sonnet 5.5 --- tests/vectors/numeric-leaves/README.md | 9 +++++++-- .../numeric-leaves/leaves-reads.msgpack | Bin 5279 -> 6641 bytes 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/vectors/numeric-leaves/README.md b/tests/vectors/numeric-leaves/README.md index c2caca11..4bfb0a76 100644 --- a/tests/vectors/numeric-leaves/README.md +++ b/tests/vectors/numeric-leaves/README.md @@ -19,9 +19,14 @@ These vectors hold every leaf kind, not only numbers. A document with one slot, or a NaN; `bytes` (bin) is what the reference writes after reading it. It keeps every bit, a signalling NaN's included. - `leaves-reads.msgpack`: an array of `[leaf, payload, accepted, rewrite]` for the wider leaves. `payload` (bin) is the one-slot record `[token]` fed to the reference; `accepted` is whether it read; `rewrite` (bin) is what the reference - writes after reading it, and empty when refused. Every token is fed to every leaf: 11 leaves x 23 tokens, 253 rows. - The tokens include an application ext (`d40100`, which the `any` leaf refuses) and complete, int-in-float-slot and + writes after reading it, and empty when refused. Every token is fed to every leaf: 11 leaves x 28 tokens, 308 rows. + The tokens include an application ext (`d40100`, which the `any` leaf refuses), the timestamp exts (`d6ff00000000`, + `d7ff0000000000000000`, `c70cff000000000000000000000000`, which the `any` leaf reads and rewrites as `91d6ff00000000`), + same-shaped non-timestamp exts (`d6fe00000000`, `c70100ff`, which it refuses), and complete, int-in-float-slot and str-in-float-slot two-slot records. + On the `any` leaf's rewrite rows a sibling is held to the rewrite's decoded value, not its MessagePack integer width + (the reference widens a boxed fixint, so the record `9105` rewrites as `91cc05`; ruling `cultlib-gaps:ruling:any-rewrite-binds-value`). + Every other leaf's rewrite binds bytes. - `leaf-record.msgpack`: `[members, payload]` for one `cultcache.leaf-record` document holding every leaf. `members` are the catalog rows the single-file store writes, each `[slot, memberName, typeName, isReference, isMany, targetSchemaName, isName, indexAlias]`; `payload` (bin) is the record's bytes in that store. diff --git a/tests/vectors/numeric-leaves/leaves-reads.msgpack b/tests/vectors/numeric-leaves/leaves-reads.msgpack index aa1b48f1177ab958b4deb6caa61f9717af8e6a7b..0ea61555ed5f9dc5a31fda02c419916698b469d8 100644 GIT binary patch delta 1252 zcmZvbxlY4C5QejMVnPn$DB^ep3L27%hK`;`a3Dg4$d(*aq;f-#ET;#A0^$%7a)Br) zNGzqHh6W+t08vmy5O%$%*G{$j&t$&&XU8Y2-%a%$wC>e2aB$Ic9n;#2=KR-L4*o__ zZa}rN{}yYquKSY;3&=rO=ug%P{siP^;VF0k-eudiyB)(y5Sb_=Ss;_iq9T-un2HPy z+kLmwixj^w3ft-t@Q5IqCX(C$ku&kU3Uf>(jy^Z6J_3&;)qg1r@HL#~uYebyX$xaE z51b?RA;(h9$O+;&VhZo)rfc@xHT3A=omNxo{7#l2_|z6PObSlEYyz6*UrsX!*+1sG*MV;5iZHqAplui&`iGL)6-KaeS z@51Tq*v@XE0jkMxs%L^}P=r#A4-szzVZyBq%k_CBnCewJ(CvCd94Ne|1`0JgP;?}2 f^u{sR9}EvI(@uW+M3T)AInxWT!oNFQm^t|ekAcj3 delta 82 zcmV-Y0ImP=GoL8~+yMQt1EB%469TgVvpNKi0kbm(z5$a33JH) olNt~Zv(ybn0+Xx~470ru?*X$f6TJbGHWm-FY846sv-}r}0a`v9Hvj+t