From 6adb5aafd0374467d12c00f5f12f1e5d0f7ac88a Mon Sep 17 00:00:00 2001 From: Libby Date: Sat, 14 Nov 2026 04:34:56 +0000 Subject: [PATCH] vectors: stored-at-stamp, the one shape a peer's storedAt must parse as Co-Authored-By: Claude Sonnet 5.5 --- tests/vectors/stored-at-stamp/README.md | 11 +++++++++++ tests/vectors/stored-at-stamp/stamps.msgpack | Bin 0 -> 902 bytes 2 files changed, 11 insertions(+) create mode 100644 tests/vectors/stored-at-stamp/README.md create mode 100644 tests/vectors/stored-at-stamp/stamps.msgpack diff --git a/tests/vectors/stored-at-stamp/README.md b/tests/vectors/stored-at-stamp/README.md new file mode 100644 index 00000000..4bec7a84 --- /dev/null +++ b/tests/vectors/stored-at-stamp/README.md @@ -0,0 +1,11 @@ +# stored-at-stamp vectors + +`stamps.msgpack`: an array of `[text, parses]`. `text` (str) is a `storedAt` a peer might send; `parses` is whether it is a stamp. +Every runtime that judges a peer's `storedAt` (the raw put of cultmesh-py, and the C#, TypeScript and Rust servers) is held to +these answers, and a text that does not parse is refused `message_invalid` (field `document`) with nothing minted or stored +(`variants:ruling:raw-put-without-stamp-refused`). + +A stamp is an RFC 3339 date-time: `YYYY-MM-DDThh:mm:ss`, an optional fraction of 1 to 9 digits, and `Z` or a numeric offset +`+hh:mm` / `-hh:mm` (hours 00-23, minutes 00-59). Uppercase `T` and `Z`, ASCII digits, no surrounding whitespace, a real +calendar date, seconds 00-59 (no leap second), years 0001-9999. The reference is `parse_stored_at` in +`packages/cultcache-py/src/cultcache_py/stores.py` (#172); this file was written from it and is a reviewed commit when it changes. diff --git a/tests/vectors/stored-at-stamp/stamps.msgpack b/tests/vectors/stored-at-stamp/stamps.msgpack new file mode 100644 index 0000000000000000000000000000000000000000..7c21f22fabad9058133fb6fd7a68275abf69d057 GIT binary patch literal 902 zcmaJ=K~BRk5airfgafC_(b`VjI`7CSHzfK2=%qZvFDM+4+7k$hia;Q_uZYBB7`u&| zR9h@ZN@ixgv%Ajk#g%(gq>LaVR9O>MaW^~n&cL|@@yQZO7o`FFb)KDo{{DxaS_nQE z!8m&2IdS0Hj0wysEIFpK(lm@$x+*QUh%Y=9B9hptSNkN? zX+k>-K}slFOO@KW^lr77-OXpWH`fdA9y0G<8ONR-$H=?Qh*3Adxw?V(raDhk9l)u8 z`vIKw)LSMe>Ll{~oK%5&&u}=_fb01>7%()nTgOvyP=G_SlYS?))cr9e7_HZoiUYi1 zs>p$JHyl^RyB{t<#v4AF+Td&3KDJ9dPpAKlck5%YcQ40}y(7dv2aHVo+d_Gb{{v=) B^o0Nb literal 0 HcmV?d00001