CLICommands

consensus

snug consensus <COMMAND>

Consensus-based truth registry with reputation-weighted BFT voting.

Subcommands

CommandWhat it does
propose-factPropose a new fact for consensus validation
get-factGet details for a fact
list-factsList facts under consensus
register-validatorRegister the caller as a validator
list-validatorsList validators and their reputation
get-validatorGet a validator by ID
attestSubmit an attestation for or against a fact
statusGet the current consensus status for a fact
challengeChallenge an existing consensus determination
resolve-challengeResolve an open challenge (admin review)
streamStream consensus events for a topic over a WebSocket

Run snug consensus <command> --help for that command's own options. The global options apply everywhere.

Examples

snug consensus propose-fact --statement "Earthquake magnitude 7.2 in Tokyo" --category news_event --min-validators 50 --confidence-threshold 0.67
snug consensus get-fact --fact-id <uuid>
snug consensus list-facts --page-size 10 --filter category:eq:news_event
snug consensus register-validator --country Japan --continent Asia --stake 100
snug consensus list-validators --min-reputation 0.8 --country Japan
snug consensus get-validator --validator-id user123
snug consensus attest --fact-id <uuid> --vote confirm --confidence 0.9 --country Japan --continent Asia
snug consensus status --fact-id <uuid>
snug consensus challenge --fact-id <uuid> --reason new_evidence --stake 500
snug consensus resolve-challenge --challenge-id <uuid> --decision uphold --notes "new evidence is credible"
snug consensus stream --topic <fact-uuid>

Next

On this page