Verify Python peer error export

This commit is contained in:
Meta Vens 2026-06-14 14:44:49 +01:00
commit f2a8f05193
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -32,6 +32,7 @@ EXPECTED_EXPORTS: dict[str, tuple[str, ...]] = {
"CultNetClientAuthorityScope",
"CultNetDatabaseSubscription",
"CultNetMessage",
"CultNetPeerError",
"CultNetWitnessArtifactBundle",
"CultNetRawClient",
"CultNetRawDocumentRecord",

View file

@ -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"])