EXPERIMENTAL: replace KV-scan consensus with Autobase sidecar engine

Cut over domain resolution to an Autobase apply-based sidecar fed by
claim/vote dual-writes from dnsPass. Remove the legacy full-KV scan
getConsensusState path and wire all reads through consensus-view.

- Add consensus-resolver, consensus-events, consensus-apply,
  consensus-autobase, and consensus-view modules
- Dual-append consensus events on claim/vote dnsPassAdd/Remove
- Bootstrap sidecar from existing KV entries; persist
  consensusAutobaseKey in network manifest
- Expose sidecar health via GET /api/consensus/status and metrics
- Add consensus-resolver and consensus-apply unit tests
- Expand RFC 0001 to Implemented; update CONSENSUS.md

Rollback: deploy prior release; KV data unchanged, sidecar rebuilds on
next startup.
This commit is contained in:
Raven Scott
2026-05-30 23:49:48 -04:00
parent 3a8daefc30
commit d230fb3360
19 changed files with 1867 additions and 890 deletions
+4
View File
@@ -146,6 +146,10 @@ async function handler(req, res) {
totalVotes: metrics.totalVotes || 0,
avgVotesPerDomain: metrics.avgVotesPerDomain || 0
},
sidecar: metrics.sidecar || {
open: false,
bootstrapComplete: false
},
activePeers: connectedPeers,
timestamp: Date.now()
});