Commit Graph
2 Commits
Author SHA1 Message Date
zeekay 6f606fde66 pkg/c: Keeper-on-Quasar state machine proof — commit() over native consensus
Models the ClickHouse/Datastore Keeper swap: a Keeper-shaped KV state machine
with commit(log_idx, op) (mirroring IKeeperStateMachine::commit) driven to
finality by libluxconsensus instead of NuRaft. Keeper write requests ride
consensus as ordered log payloads; Quasar's decision callback is the commit
signal — the slot KeeperServer's nuraft::raft_server occupies today. Asserts
exactly-once, in-order commit and final KV state. 'make test-keeper' passes:
7 ordered commits, zero Raft.
2026-06-26 19:27:07 -07:00
zeekay 526065fe67 pkg/c: C++ consumer example — native consensus from C++, no Raft/ZK
Adds examples/cpp_consumer.cpp + a 'make test-cpp' target proving a C++
translation unit links libluxconsensus statically and drives a block to
finality through the C ABI — no Go runtime, no gRPC, no zero-knowledge layer.

This is the seam for replacing an embedded Raft/Keeper (ZooKeeper API) with
leaderless Lux consensus *natively* in a C++ engine (e.g. the ClickHouse-derived
Hanzo Datastore's ReplicatedMergeTree coordination), rather than porting Go to
C++. Verified: 'make test-cpp' -> 'C++ reached consensus finality — zero Raft,
zero ZK'.
2026-06-26 17:24:54 -07:00