Repository navigation
feat(state): Phase 7 — delta codec, production benchmarks, admin resync/GC, C-identifier enforcement - #84
Merged
Conversation
transfix
force-pushed
the
feature/phase7-perf-hardening
branch
from
May 22, 2026 15:20
691cd98 to
6ab797d
Compare
…nc/GC, C-identifier enforcement
Delta codec (state_delta_codec):
- XOR-based delta compression against per-path baselines
- CRC32 baseline verification for safe decode
- Raw fallback for first-write paths (magic 0xD0 vs 0xD1)
- Path-aware encode/decode with automatic baseline update
- 18 test cases covering round-trip, size change, CRC mismatch
Production benchmarks (state_distributed_bench_test):
- blob_store_put/get_5000x4KB: content-addressed store throughput
- callback_latency_10000: ingest → valueChanged signal latency
- admin_snapshot_128peers: snapshot + to_text overhead
- slow_peer_isolation_32peers_half_slow: quarantine under load
- delta_codec_64KB_1000iters: delta encode/decode throughput
Admin tooling (state_distributed_admin):
- force_resync(peer): drain pending mutations for a peer
- gc_stale_peers(now, threshold): remove stale peers from registry
- 6 new admin test cases
C-identifier enforcement:
- state_cluster_shard constructor validates cluster_id and
local_node_id against C identifier rules (isValidStateName)
- state_peer_registry::add_peer validates node_id
- All test files updated: hyphens replaced with underscores in
cluster/node identifiers across 12 test files
transfix
force-pushed
the
feature/phase7-perf-hardening
branch
from
May 22, 2026 15:33
6ab797d to
0008bb2
Compare
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.
Phase 7: Performance & Production Hardening
Delta codec (
state_delta_codec)Production benchmarks
blob_store_put/get_5000x4KB: content-addressed store throughputcallback_latency_10000: ingest → valueChanged signal latencyadmin_snapshot_128peers: snapshot + to_text overheadslow_peer_isolation_32peers_half_slow: quarantine under loaddelta_codec_64KB_1000iters: delta encode/decode throughputAdmin tooling
force_resync(peer): drain pending mutations for a peergc_stale_peers(now, threshold): remove stale peers from registryC-identifier enforcement
state_cluster_shardconstructor validates cluster_id and local_node_idstate_peer_registry::add_peervalidates node_idAll tests pass. No regressions.