# KarmaDAG and open validator membership > Website terminology edition — 2026-11-17. Adapted from the Tondi consensus specification; product terminology and repository-relative source links have been normalized for this website. This is not an unmodified source snapshot. KarmaDAG names the Tondi integration; the engine origin and license remain unchanged. Tondi's KarmaDAG integration orders transactions using a source-pinned consensus engine from Mysten Labs. Its current profile uses ordinary DAG ordering: transaction voting/fast paths disabled, no V3 activation. Tondi does not implement a replacement DAG decision rule. The [upstream source](https://github.com/MystenLabs/sui/tree/aa01b857f6402cd24197458b8642ea15f958593d/consensus) and Apache license are retained. The maintained changes bind DAG signatures to Tondi's epoch domain and expose compact equivocation statements. A compute-limit reason was added to the proposal-pool interface. Consensus messages use the engine's transport; Note transactions and contract views continue to use Telegraph. ## Bootstrap trust Genesis may contain one validator. That operator controls ordering, censorship, availability and finality. **One validator provides no Byzantine fault tolerance.** Adding keys does not prove independent operators or distributed stake. The BFT assumption concerns less than one third of active voting stake, not the total registered stake or number of machines. The genesis manifest commits its network namespace, allocation, committee limits, epoch length, code implementations, resource rules and native consensus profile. The Testnet initializer creates one bonded validator, both fund Controllers and an explicit wallet allocation. All allocations count against the supply cap. There is no separate Mainnet or development-mode branch. There is one current storage, transaction and time model. Previous prototype databases must be rebuilt. A nonempty directory belonging to another storage format is rejected rather than silently ignored. ## Permissionless registration and elections A candidate registers by creating a native Stake Note in an ordinary, authorized transaction. Its collateral is native currency, with a minimum of **1,000 TND**. It contains distinct Ed25519 consensus and transport keys, numeric consensus/RPC endpoints, activation and exit epochs, and possession proofs from both keys plus a BLS proof of the registered ECIES secret. The signed registration binds network, stake identity, value, owner, endpoints and activation. Copied transport or encryption public bytes are insufficient. Transaction admission updates verified key-ownership/liveness indexes from the local delta; it does not rerun every candidate proof. The non-serializable indexes are rebuilt from verified Notes during recovery. Registration activates in the next Epoch. It needs no founder signature, allowlist entry or off-chain approval. The owner must authorize the consumed funding Notes through ordinary RISC-V Auth. Treasury-controlled assets and native-asset/state carriers cannot masquerade as eligible stake. At each Epoch boundary: 1. Derive candidates from the verified live Stake Notes, excluding slashed keys and positions whose exit epoch has arrived. 2. Sum eligible positions for each consensus key. All registrations for that key must agree on owner, transport identity and endpoints. Different consensus identities cannot reserve the same transport key. 3. Rank by descending bonded native value; break ties by ascending consensus public key. 4. Select up to the genesis seat limit, with an implementation maximum of 100, then sort selected members by key to fix authority indices. Every election ranks the entire eligible pool again. Existing members receive no incumbent priority. A new candidate with sufficient stake can replace a current member even when all seats are occupied. This is stake-ranked selection, not one-person voting, identity verification or a guarantee that small holders obtain a seat. Stake splitting and concentration remain relevant; security is measured against the selected committee. Committee membership and voting weights remain fixed for the Epoch. The normal profile uses **1,000 KarmaDAG decisions per Epoch**; the manifest pins its exact value. This is a logical progress unit, not a promise about calendar duration. ## Ordered execution and resources A KarmaDAG decision can contain many signed proposals. Treating an entire decision as one bounded transaction block would either reject valid decisions or lose resource accounting. The adapter therefore executes the engine's proposal order. Each nonempty signed proposal produces one bounded application checkpoint. An entirely empty decision produces one checkpoint for clock, rewards and epoch progress. The header commits the decision index/digest, proposal identity, part index and completion flag. Empty proposals do not create redundant application checkpoints when the decision already contains transactions. Each proposal has independent hard limits of **2 MiB of envelopes and 500 million declared execution cycles**. The adapter checks those limits before admitting a peer's block, and its bounded `TransactionPool` applies both limits when building its own proposals. Bytes and cycles are never compared as the same quantity. Failed execution reserves its declared work; caches never discount logical gas. Logical input reads remain bounded during execution. The queue bounds pending data and record count, tracks durable proposal acknowledgements, requeues uncommitted work after garbage collection or an epoch change, and releases capacity after application execution. A causal package places parents before children and stays in one proposal. Its transactions still succeed or fail independently; an atomic application operation must be one transaction. The last proposal checkpoint completes the decision. Only after the final decision of the Epoch is fully executed can the ledger elect the next committee. A last-checkpoint quorum attestation from the old committee authenticates that boundary. The next engine instance uses a domain derived from genesis, Epoch, previous boundary checkpoint and the new committee. Epoch start time is persisted and never reconstructed from restart wall time. A proposal's resource budget is not a network TPS guarantee. Aggregate offered work depends on active proposers, DAG progress, hardware and admission policy. Execution currently applies ordered transactions sequentially and clones ledger candidates for atomic error handling. Production throughput, large-state costs and adversarial backlog behavior require measurement and further optimization. ## Time and Since Contracts can request two clock capabilities: **Epoch** and **ConsensusTime**. The latter uses seconds. Ledger checkpoint sequence numbers are locations, not contract time. For each active member, the ledger retains its latest authenticated timestamp observed in committed DAG blocks. Consensus time is the stake-weighted median of those observations, clamped not to decrease. Initial/missing observations start at the fixed epoch-start time. Minority stake cannot move the median by changing only its own clock. Observations and their partial-decision context survive journal replay. This is a consensus clock under validator clock and network assumptions, not an external timestamp oracle. It advances only on committed decisions. On resumption, honest timestamp observations may include elapsed real time; Epoch progress only advances when decisions complete. The input's 64-bit Since encoding is: | Bits | Meaning | | --- | --- | | 63 | Absolute (`0`) or relative (`1`) | | 62–61 | Epoch (`0`) or ConsensusTime seconds (`1`) | | 60–56 | Reserved, must be zero | | 55–0 | Value | Raw zero is unconstrained. Other metrics are rejected. Relative constraints use the Note's authenticated `birth_epoch` or `birth_time_seconds`. The VM validates maturity; Auth/Validator code must still require the intended mode, metric and minimum. A large absolute number cannot replace a relative delay. The recovery Guest uses relative **seconds**. `ValidityWindow` remains a half-open consensus-time interval. Rewards mature after two Epochs; fund notice periods remain seconds. ## Exit and slash evidence An owner announces exit with a unique Stake Note successor, preserving its value, keys, owner, possession proofs and Bindings. Exit cannot become effective before current Epoch + 2. The position stays eligible until its exit Epoch, then stops contributing to elections. Withdrawal requires exit Epoch + 4, retaining a bounded evidence window. These are prototype Epoch parameters, not a claim of a seven-day production unbonding period. Registration/exit validation checks pending future exit horizons. An ordinary exit cannot leave no eligible successor committee. This cannot prevent the last operator from switching off its machine. Anyone may submit bounded evidence through the public RPC. Consensus verifies: - Two actual KarmaDAG block-signing statements for the same network/epoch/round/author and different contents; or - Two conflicting execution attestations for the same Epoch and checkpoint position. Evidence must fall within the four-Epoch acceptance window. Signatures, committee membership and signing domains are verified. Valid evidence immediately bans that consensus key and quarantines all its still-live stake positions through verified indexes. Neither mature withdrawal, replacement nor read-only execution can use them. Other Notes at the same Auth remain available. Native retirement removes at most 16 actual stake Notes per completed source decision, rotating fairly between banned validators; each removal credits only that Note's native value to EcoFund pending income. Until removal the value remains solely in custody, with no pre-credit or independent slash balance. Replayed or already-banned evidence cannot collect another penalty. A new key is not automatically identified as the same human operator. Current-epoch voting weights stay frozen until election; banned keys lose reward eligibility and future committee eligibility. Safety/liveness still require the stated honest-weight assumptions. See [bounded retirement acceptance](SLASHING_ACCEPTANCE.md). ## Recovery and recent checkpoints The application journal uses bounded, checksummed frames and fsyncs execution before publishing the committed checkpoint. RPC queue receipts are explicitly transient admission, not finalized or durable inclusion. Truncated tails are discarded; complete-frame corruption is rejected. Votes are durable. A missing local vote can be reconstructed only for replay-verified local execution. The engine replays its current Epoch and the adapter verifies already-executed decision digests and partial proposals before continuing. Back up **both** the application journal and the engine's epoch databases. A single operator with missing current-epoch DAG storage cannot safely invent its prior signing history; startup fails closed. A private key file is locked against a second local signer, and a used-key marker prevents accidentally treating reused keys as a fresh chain. PoS does not eliminate long-range attacks. A fresh non-genesis node must obtain a recent independently trusted `HEIGHT:HASH`; it is not a founder approval token. The node authenticates the backwards header chain to genesis before accepting any peer prefix, then verifies old-committee quorum signatures and re-executes every transition. It does not sign or relay transactions until it reaches the configured anchor. Existing nodes retain their committed prefix and do not automatically roll back to a competing peer history. There is no snapshot-only fast sync or authenticated historical query proof in this implementation. Serving the retained history and obtaining a sufficiently recent checkpoint remain operational requirements. ## Treasury and issuance The existing 90/5/5 split continues: security participants receive 90% of subsidy and all transaction fees; DevFund and EcoFund receive 5% each. There is no extra issuance for introducing validators, no fee levy for funds, and no tail emission. Issuance is integrated over consensus seconds, at an initial 8,320,600,000 base units per second and halving every 126,230,400 seconds, bounded together with genesis by 29 billion TND. Each canonical one-second source is split once, including a partially capped final source. Changing proposal or checkpoint frequency cannot change fund rounding or total issuance. Subcapacity income remains an authenticated pending entitlement. Settlement uses 60-second windows and at most 128 outputs; unpaid validator claims use a deterministic rotating cursor. Both Controllers are explicit genesis allocations. Consensus quorum does not grant fund spending or governance authority. See [treasury](TREASURY.md). ## Current limits This is an executable prototype with one delivered Testnet and explicitly temporary treasury governance. It has not received an independent consensus/security audit. Committee size does not prove decentralization, ordering does not promise MEV fairness, a quorum certificate does not prove archive availability, and a benchmark of a VM loop does not measure network capacity. Production parameters, fork maintenance, multi-region faults, state growth, proof-serving and a complete fee market need separate evidence. ## Computed commands and native work Application ordering includes explicit transactions, signed SharedNote commands and bounded equivocation evidence. Every proposal retains separate byte/cycle limits. Application execution resolves current heads in that order; finalized headers additionally commit the complete canonical execution summary, sealed receipts, business outcomes and resolved versions. A fee-only abort is an explicit outcome, not a successful business transition. Only the last application part of a completed source decision runs bounded stake retirement, lifecycle controls and due tasks, in that order. The three phases share a 200-million-cycle reservation ceiling. Up to 16 retirements reserve 8 million cycles; up to 16 controls reserve 80 million, leaving at least 112 million for wakes, including a maximum 105-million-cycle wake reservation. Ordinary proposal work has its separate per-checkpoint ceiling. Stable TaskDirective requests precede wake selection; controls inspect at most 16 requests; wakes inspect at most 64 tasks and attempt at most 16 executions. A committed TaskId admission cursor prevents a large overdue catch-up task from blocking all other tasks. Automatic attempts do not advance the independent control revision. Fee-only failures and successful atomic Effects are journalled and re-executed under quorum verification. No external keeper transaction is needed to renew recurring work. Application state commitments length-frame independent variable sets, so validator bans cannot be reinterpreted as evidence digests. The rules fingerprint commits both schema files, built-in program identities and the current scheduling semantics. Source verification in the project repository detects import/patch drift against the pinned engine provenance. Transaction voting and the V3 fast path remain disabled. An upstream transaction-voting shutdown regression hangs under the local Tokio runtime; it is excluded from the separately recorded imported-engine suite. It is not a current-profile acceptance check. See [verification](VERIFICATION.md). ## Network identity and local operation `Genesis.network` is the transaction namespace committed by signed transaction bodies. `Genesis.id()` commits the complete manifest, allocation and rule/program fingerprints. These are distinct hashes; the public bootstrap manifest and wallet pin both. DNS discovery is not a trust anchor. There is one public Testnet manifest and no score/height-based network-upgrade activation. Stake eligibility Epochs remain ordinary membership rules. See [the single-laptop runbook](TESTNET.md).