Files
neuron-tai/.scratch/alpha-hardening/issues/14-a3-raft-durable-term-vote.md
D.Popov 68e057209c Add alpha-hardening ADRs and issue plan from pre-release audit.
Lock alpha scope, tracker auth, TOPLOC fraud verification, and deferred multi-tracker money-path work; supersede legacy fraud issues with ADR-0018.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 23:12:09 +03:00

752 B
Raw Permalink Blame History

Status: ready-for-human

14 — A3: Durable Raft term and vote state (deferred)

What to build

Persist Raft currentTerm, votedFor, and log metadata to disk. In-memory-only term (~26) risks split leadership after tracker restart → duplicate settlement epochs.

Code refs:

  • packages/tracker/meshnet_tracker/raft.pyLogEntry.term (~2527), election state in RaftNode

Acceptance criteria

  • Term/vote persisted alongside tracker data dir
  • Restart resumes as follower/candidate with monotonic term
  • Test: kill leader mid-settlement, restart, no duplicate payout batch

Blocked by

Alpha single-settlement posture