CultLib/packages/cultcache-py/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens fe93b66cfb cultcache-py: one container walk owns payload depth, float32 key images are refused on write, one reader owns map keys
_containers is the only depth counter (codec write, definition read and write); _PACK_DEPTH_LIMIT is gone. _check_writable refuses keys that collide once decoded (a Float32 beside an equal int, bool or float). The store's whole-file read and cultnet-py's stamp router read through the codec's reader instead of strict msgpack.unpackb, so no reader outside the codec decides key acceptability.

Does not pass the suite alone: two tests in test_payload_codec.py still assert the 511 bound; the next commit replaces them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:40:02 +02:00
..
test_cultcache.py cultcache-py: the MessagePack codec owns map keys and 64-bit integers both ways, one default author, payload-free refusals, atomic migrate_payloads 2026-10-12 06:15:30 +02:00
test_payload_codec.py cultcache-py test: a NUL byte in the migration test source made the module unimportable 2026-10-12 06:37:34 +02:00
test_typed_leaves.py cultcache-py test: the any-row comment cites the ruling in force, any-rewrite-binds-kind-and-value 2026-10-12 02:28:26 +02:00
test_union_parity.py cultcache-py: one container walk owns payload depth, float32 key images are refused on write, one reader owns map keys 2026-10-12 07:40:02 +02:00