{
  "version": "1.0",
  "article": "https://decentralised.news/ai-trading-ledger-restart-replay-2027",
  "title": "Can an AI Trading Ledger Survive a Restart? A 2027 Replay Audit",
  "checkedOn": "2026-11-28",
  "evidenceKind": "source-inspection-and-synthetic-experiment",
  "scope": "Ten local replay checks and four SHA-256 integrity checks on an original two-event example.",
  "limitations": [
    "No upstream execution or broker reconciliation; hashes test internal consistency, not external truth or authenticity."
  ],
  "sources": [
    {
      "label": "Pinned AI Hedge Fund paper ledger",
      "url": "https://github.com/virattt/ai-hedge-fund/blob/5c553b5222044f6a5527bd377b4104c50ee0ad28/hedge_fund/paper/ledger.py",
      "supports": "Session-chain replay, content-hash checks, checkpoint boundaries, full replay and separate halt control.",
      "checked": "2026-11-28"
    }
  ],
  "illustrativeInputs": {
    "cash": "1000",
    "events": "e1,buy,3,104\ne2,cash,28,0",
    "checkpoint": "1"
  },
  "illustrativeOutputs": {
    "summary": "A checkpoint already includes earlier events. Applying them again double-counts their effects.",
    "metrics": [
      {
        "label": "Uninterrupted final cash",
        "value": 716
      },
      {
        "label": "Uninterrupted final units",
        "value": 3
      },
      {
        "label": "Correct restart cash",
        "value": 716
      },
      {
        "label": "Correct restart units",
        "value": 3
      },
      {
        "label": "Blind replay cash",
        "value": 404
      },
      {
        "label": "Blind replay units",
        "value": 6
      }
    ],
    "warnings": [
      "The cash credit is an authored external movement, not trading profit.",
      "The intentionally incorrect replay may produce an impossible negative balance.",
      "This explorer checks replay arithmetic only. It does not authenticate a checkpoint, hash a log or reconcile a broker."
    ],
    "table": {
      "columns": [
        "Stage",
        "Cash",
        "Units"
      ],
      "rows": [
        [
          "Initial",
          1000,
          0
        ],
        [
          "Checkpoint",
          688,
          3
        ],
        [
          "Uninterrupted",
          716,
          3
        ],
        [
          "Correct restart",
          716,
          3
        ],
        [
          "Incorrect full replay on checkpoint",
          404,
          6
        ]
      ]
    }
  },
  "author": "Heath Muchena",
  "publisher": "Decentralised News"
}
