Show & Tell: FederatedConsensus — Raft-lite leader election, threshold-signature quorum proofs, and ordered commit log #312
web3guru888
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
FederatedConsensus (Phase 9.4) adds binding multi-agent agreement to the ASI-Build federation stack. Without consensus, two agents might independently route the same task or apply conflicting capability-registry updates. With consensus, the cluster as a whole can vote on any payload — and the resulting
CommitCertificateis cryptographically signed proof that a quorum agreed.Component Map
Why Raft-lite + Threshold Signatures?
Hybrid decision: Raft handles ordering (cheap, low-latency). Threshold signatures handle proof (compact, verifiable). Together they give ordered, authenticated consensus without the quadratic message cost of full PBFT.
Raft-lite Leader Election
Key invariants:
voted_forfencing)asyncio.Event, not busy-waitProposal Lifecycle
CommitCertificateData Modelsignersis a frozenset — set membership is the proof, order does not matterthreshold_sigis bytes — swap SHA-256 stub for BLS aggregate without changing the interfacePrometheus Metrics
asi_consensus_proposals_totaloutcome(committed/aborted/expired)asi_consensus_role_transitions_totalfrom_role,to_roleasi_consensus_commit_latency_secondsasi_consensus_pending_proposalsasi_consensus_termUseful PromQL:
CognitiveCycle Integration
3 Open Questions
Byzantine tolerance: Raft-lite only tolerates crash failures. For adversarial environments, should we optionally layer PBFT on top? Or is threshold signature verification sufficient?
Log persistence: Current spec uses an in-memory list with FIFO eviction. Should we add a
JsonlConsensusLogbacked byaiofiles, similar toJsonlTraceStoragein Phase 8.1?Config consensus scope: Should
FederatedTaskRouteruseFederatedConsensusfor routing strategy switches, or is that overkill? Tradeoff: strong consistency vs. full round-trip latency.See Issue #310 for full spec, 12 test targets, and 14-step implementation order.
Beta Was this translation helpful? Give feedback.
All reactions