{
  "term": {
    "id": "lex:gray-code-state-transition-protocol",
    "slug": "gray-code-state-transition-protocol",
    "term": "Gray Code State Transition Protocol",
    "aliases": [
      "Gray Code State Transition Protocol — Ether Layer Failover Memory"
    ],
    "kind": "canon",
    "type": "protocol",
    "definition": "State management protocol using Gray code principles to ensure data integrity during complex operational transitions in the Ether Layer. Gray code property: only one logical bit changes at a time between consecutive states. Applied to agent failover: when an agent crashes mid-execution, the Ether Layer uses Gray code-inspired single-bit state transitions to write the current state to local cache without corrupting the partial state. On recovery, the system reads the last valid Gray code state and resumes from exactly that point. Prevents the 'split-brain' problem where a crashed agent leaves the system in an ambiguous half-written state. Complements exponential backoff retry logic — Gray Code handles the state write, exponential backoff handles the retry schedule.",
    "definition_basis": "verbatim",
    "definition_source": "https://app.notion.com/p/333a981d75b6817a9550db78bbc789eb",
    "provenance": [
      {
        "source": "notion",
        "ref": "https://app.notion.com/p/333a981d75b6817a9550db78bbc789eb",
        "captured_at": "2026-07-25"
      }
    ],
    "related": [
      "lex:ether-layer"
    ],
    "status": "published",
    "first_seen": "2026-03-30",
    "source_ids": [
      "ip:CORE-PR-GCST-1.0-GA"
    ]
  },
  "url": "https://lexicon.neuruh.com/t/gray-code-state-transition-protocol",
  "cite": "lex:gray-code-state-transition-protocol — Neuruh Lexicon v1.0.0",
  "lexicon_version": "1.0.0",
  "content_hash": "0a2bb72426e976507b89a3172a8c5671b6fe136f6e54ce8499ec1d890ac7e851"
}
