013-ledger-decision-chain

The decision chain: hash-linked records, CAS append, verification at boot

Lifecycle approvedImplementation completeVerification unknownQualification unknown

The governance ledger: a linear chain of signed, hash-linked Decision records stored in the app's hiqlite, appended by a compare-and-swap that a unique index on the parent hash enforces inside one txn, retried after a bounded wait on a miss and then a typed integrity error, and verified in full at every boot with an integrity failure being process-fatal. Records use the attest-ledger envelope and canonical-keysort-json bytes so an independent verifier can check the chain without this code. Carries enrahitu://024 and enrahitu://032 §3.7.

Read the full pinned specification ↗

Relationships

Claimed units

  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/Cargo.toml"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/src/lib.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/src/record.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/src/chain.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/src/append.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/src/verify.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/src/signer.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/tests/append.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/tests/verify.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/tests/common/"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/rahi-ledger/testdata/chains/"
    }
  • extends
    {
      "nature": "additive",
      "spec": "010-workspace-and-core-types",
      "unit": {
        "anchor": "workspace.dependencies",
        "file": "Cargo.toml",
        "kind": "section"
      }
    }
  • constrains
    {
      "flavor": "invariant-freeze",
      "note": "append is the unique-parent CAS; constitution XI",
      "unit": {
        "kind": "file",
        "path": "crates/rahi-ledger/src/append.rs"
      }
    }

Source headings

  1. 013: The decision chain
  2. 1. Purpose
  3. 2. Territory
  4. 3. Behavior
  5. 4. Functional requirements
  6. 5. Acceptance criteria
  7. 6. Out of scope
  8. 7. Resolved decisions
  9. Verification

Frozen anchors

No frozen anchors declared.