Expand Python runtime verifier exports

This commit is contained in:
Meta Vens 2026-06-14 03:09:35 +01:00
commit 44870695b7
2 changed files with 64 additions and 2 deletions

View file

@ -50,8 +50,9 @@ CultCache, CultNet, and CultMesh. It is evidence, not confetti.
prediction, pulls the live Python peer shard log, applies the authoritative
entry, and verifies the session reports the record as reconciled.
- Python package health:
`cultcache-py-verify --json` checks public exports, `py.typed` markers, and
benchmark sanity for Python-owned hot paths.
`cultcache-py-verify --json` checks the public CultCache/CultNet/CultMesh
export surface, `py.typed` markers, and benchmark sanity for Python-owned hot
paths.
- Python/C# public cache baseline:
`cultcache_py.compare_csharp` runs Python and C# `CultCache` upsert/get
benchmarks with the same operation names and reports Python-to-C# ratios. Use

View file

@ -11,32 +11,93 @@ from .benchmark import run_benchmark
EXPECTED_EXPORTS: dict[str, tuple[str, ...]] = {
"cultcache_py": (
"BackingStore",
"CultCache",
"CultCacheBuilder",
"CultCacheEnvelope",
"CultCacheSchemaCatalogEntry",
"CultCacheSchemaCatalogMember",
"DatabaseEntryField",
"DocumentDefinition",
"JsonLinesBackingStore",
"SingleFileMessagePackBackingStore",
"database_entry_field",
"define_database_entry_type",
"define_document_registry",
"define_document_type",
),
"cultnet_py": (
"CultNetAppliedRecord",
"CultNetClientAuthorityScope",
"CultNetDatabaseSubscription",
"CultNetMessage",
"CultNetRawClient",
"CultNetSimulationConsensus",
"CultNetSimulationConsensusOptions",
"CultNetSimulationObservationHub",
"apply_raw_document_record",
"apply_raw_snapshot",
"apply_shard_log_response",
"compute_simulation_claim_hash",
"database_subscribe",
"database_unsubscribe",
"decode_frame",
"decode_witness_artifact_bundle_payload",
"document_delete",
"document_put_raw",
"encode_frame",
"encode_witness_artifact_bundle_payload",
"hello",
"parse_message",
"read_frame",
"schema_catalog_request",
"schema_document_map",
"shard_catalog_request",
"shard_log_request",
"simulation_observation",
"snapshot_request",
"witness_artifact_bundle",
"write_frame",
),
"cultmesh_py": (
"CultMeshAuthorityLease",
"CultMeshAuthorityLeaseCatalog",
"CultMesh",
"CultMeshDatabase",
"CultMeshDatabaseChange",
"CultMeshDiscoveryClient",
"CultMeshGameSession",
"CultMeshGameSessionOptions",
"CultMeshNode",
"CultMeshPeerCard",
"CultMeshPeerCatalog",
"CultMeshPeerExchangeClient",
"CultMeshPrediction",
"CultMeshSessionChange",
"CultMeshSimulationFact",
"CultMeshSimulationFactCommit",
"CultMeshSimulationFactCommitter",
"CultMeshStreamCatalog",
"CultMeshStreamConsumerProfile",
"CultMeshStreamDescriptor",
"CultMeshStreamFrameHandle",
"CultMeshStreamNegotiation",
"CultMeshVerseCatalog",
"CultMeshVerseCompatibility",
"CultMeshVerseDescriptor",
"CultMeshVerseDiscoveryClient",
"PEER_EXCHANGE_REQUEST",
"PEER_EXCHANGE_RESPONSE",
"SIMULATION_FACT_DOCUMENT_TYPE",
"SIMULATION_FACT_SCHEMA_VERSION",
"VERSE_CATALOG_REQUEST",
"VERSE_CATALOG_RESPONSE",
"create_node",
"peer_exchange_request",
"peer_from_wire",
"simulation_fact_document",
"verse_catalog_request",
"verse_from_wire",
),
}