Repository navigation
feat: distributed_state_session convenience API - #86
Merged
Merged
Conversation
transfix
force-pushed
the
feature/distributed-state-session
branch
from
May 22, 2026 20:00
54f4591 to
f2b5194
Compare
Add a high-level distributed_state_session class that wires together all distributed state components (shard, transport, blob store, compression, admin) from a single distributed_state_config struct. API: - distributed_state_session::join(app, config) creates and starts a session - stop() gracefully tears down in correct order - sync_path(path, mode) adds runtime sync paths - delegate(path, target) / undelegate(path) for subtree delegation - Component accessors: shard(), transport(), blob_store(), admin() Supports inproc, IPC, and gRPC (when CVC_ENABLE_GRPC) transports. Configurable policy flags, mount points, seed peers, and background pump thread. Tests: 12 new tests covering lifecycle, replication, pump thread, sync paths, mounts, delegation, policy flags, admin, and IPC transport.
transfix
force-pushed
the
feature/distributed-state-session
branch
from
May 22, 2026 20:34
f2b5194 to
b41475f
Compare
transfix
added a commit
that referenced
this pull request
Sep 22, 2026
#402 added the sim_world internal base nav_stats collector + its pycvc bindings (nav_sim_world_begin_nav_stats / nav_sim_world_nav_stats) to bindings/pycvc/pycvc_nav.i. Bump the core pycvc column recipes so the resolver republishes/picks up the rebuilt pycvc (3.4.0+cvc.2) that carries the new symbols — unblocking grl-snam PR #86 (NativeSimWorld base-stats collection), which gates on HAS_SIM_WORLD_NAVSTATS. Core columns only (pycvc-cp311/312/313 + pycvc-cp311-cuda); the pycvc-gl columns wrap cvcGL (CVC_BUILD_PYCVC_GL) and don't include pycvc_nav.i, so they're unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the
distributed_state_sessionhigh-level convenience API defined in the distributed state plan document. This class wires together all distributed state components from a singledistributed_state_configstruct, eliminating the need to manually assemble shards, transports, blob stores, and admin facades.New Files
distributed_state_session.h: Header withdistributed_state_config,sync_mode,delegation_target,transport_kindenums, and the session classdistributed_state_session.cpp: Implementation ofjoin(),stop(),sync_path(),delegate(),undelegate(), and the background pump loopAPI
What
join()Wires Togethermemory_state_blob_storestate_cluster_shardwith policy flags (authority, write policy, delegation, conflicts, interest)state_distributed_adminfacadeTests
12 new tests: