From f2a8f05193619272d6b111b1c896f6699136920e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 14:44:49 +0100 Subject: [PATCH] Verify Python peer error export --- packages/cultcache-py/PARITY.md | 5 +++-- packages/cultcache-py/src/cultcache_py/verify.py | 1 + packages/cultcache-py/tests/test_cultcache.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/cultcache-py/PARITY.md b/packages/cultcache-py/PARITY.md index 565bb04d..51901e12 100644 --- a/packages/cultcache-py/PARITY.md +++ b/packages/cultcache-py/PARITY.md @@ -174,8 +174,9 @@ CultCache, CultNet, and CultMesh. It is evidence, not confetti. - Python package health: `cultcache-py-verify --json` checks the public CultCache/CultNet/CultMesh export surface, `py.typed` markers, a live local CultMesh framed-wire smoke - over hello/schema/snapshot/shard catalog/shard log, peer-advertised mutation - contracts, payload schema wire contracts, and benchmark sanity for + over hello/schema/snapshot/shard catalog/shard log, typed peer-error export + availability, peer-advertised mutation contracts, payload schema wire + contracts, and benchmark sanity for Python-owned hot paths. - Python/C# public cache baseline: `cultcache_py.compare_csharp` runs Python and C# `CultCache` upsert/get diff --git a/packages/cultcache-py/src/cultcache_py/verify.py b/packages/cultcache-py/src/cultcache_py/verify.py index b0bb4af6..359dbc1d 100644 --- a/packages/cultcache-py/src/cultcache_py/verify.py +++ b/packages/cultcache-py/src/cultcache_py/verify.py @@ -32,6 +32,7 @@ EXPECTED_EXPORTS: dict[str, tuple[str, ...]] = { "CultNetClientAuthorityScope", "CultNetDatabaseSubscription", "CultNetMessage", + "CultNetPeerError", "CultNetWitnessArtifactBundle", "CultNetRawClient", "CultNetRawDocumentRecord", diff --git a/packages/cultcache-py/tests/test_cultcache.py b/packages/cultcache-py/tests/test_cultcache.py index e062c282..e4181dbb 100644 --- a/packages/cultcache-py/tests/test_cultcache.py +++ b/packages/cultcache-py/tests/test_cultcache.py @@ -399,6 +399,8 @@ class CultCacheTests(unittest.TestCase): {check["name"] for check in result["checks"]}, {"public_exports", "typed_markers", "local_cultmesh_wire_smoke", "benchmark_sanity"}, ) + by_name = {check["name"]: check for check in result["checks"]} + self.assertEqual(by_name["public_exports"]["missing"], {}) def test_cultnet_schema_message_frame_round_trip(self) -> None: message = hello(runtime_id="python-test", supported_schema_versions=["cultnet.hello.v0"])