{
  "reportId": "TC-AUDIT-BATT-DEMO-0001-2026-07-05T17-57-19-163Z",
  "generatedAt": "2026-07-05T17:57:19.163Z",
  "assetId": "BATT-DEMO-0001",
  "assetSummary": {
    "assetType": "EV_BATTERY_MODULE",
    "batchId": "BATCH-DEMO-A",
    "serialNumber": null,
    "status": "CERTIFIED",
    "issuer": {
      "id": "ORG-DEMO-SUPPLIER",
      "name": "Carpathian Cells SRL",
      "role": "SUPPLIER"
    },
    "createdAt": "2026-07-05T09:07:00.114Z",
    "auditSource": "DB"
  },
  "documentIntegrity": {
    "documents": [
      {
        "id": "808ae7f2-0f56-4b51-948a-86c0491b5591",
        "fileName": "certificate-of-origin-demo.txt",
        "documentType": "CERTIFICATE_OF_ORIGIN",
        "sha256": "0x0142a3301126dc3bb2c16e3fe42d6d718f049a9b04b6ff92a40da501d8c02f6e",
        "verificationStatus": "VALID",
        "anchored": true,
        "uploadedAt": "2026-07-05T09:36:25.057Z",
        "tamperedAt": null
      },
      {
        "id": "2b7a0077-ab9f-4ff7-ac21-c17b7357286e",
        "fileName": "certificate-of-origin-demo.txt",
        "documentType": "CERTIFICATE_OF_ORIGIN",
        "sha256": "0x0142a3301126dc3bb2c16e3fe42d6d718f049a9b04b6ff92a40da501d8c02f6e",
        "verificationStatus": "TAMPERED",
        "anchored": false,
        "uploadedAt": "2026-07-05T09:07:00.142Z",
        "tamperedAt": "2026-07-05T09:07:18.970Z"
      }
    ],
    "overallStatus": "TAMPERED",
    "auditSource": "OFF_CHAIN_HASH"
  },
  "blockchainProofs": {
    "proofs": [
      {
        "id": "cmr7ljqtk0001mp01f0n2vrdq",
        "proofId": "0x69312f8d8af502e90dc56ce0b010d2a3e2168ee1f5b61a9a5f5bce37ae00a230",
        "hash": "0x0142a3301126dc3bb2c16e3fe42d6d718f049a9b04b6ff92a40da501d8c02f6e",
        "chainId": 1337,
        "network": "trustchain-besu",
        "contractName": "EventLedger",
        "contractAddress": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",
        "txHash": "0x1c263803006a9b9514553b00df260b5bafb8cc8bd767a80a45e56d6ea27e0904",
        "blockNumber": 243,
        "eventName": "ProofAnchored",
        "createdAt": "2026-07-05T09:36:29.577Z"
      }
    ],
    "auditSource": "ON_CHAIN"
  },
  "custodySummary": {
    "currentCustodian": {
      "actorId": "ORG-DEMO-SUPPLIER",
      "name": "Carpathian Cells SRL",
      "role": "SUPPLIER"
    },
    "transfers": [],
    "transferCount": 0,
    "auditSource": "DB_AUDITED"
  },
  "riskSummary": {
    "threshold": "2C-8C",
    "readingCount": 0,
    "alertCount": 0,
    "openAlertCount": 0,
    "alerts": [],
    "auditSource": "DB_AUDITED"
  },
  "timeline": {
    "entries": [
      {
        "step": "CREATED",
        "label": "Asset registered by Carpathian Cells SRL",
        "at": "2026-07-05T09:07:00.114Z",
        "status": "done",
        "source": "DB"
      },
      {
        "step": "CERTIFIED",
        "label": "Certificate hash stored and verified",
        "at": "2026-07-05T09:36:25.057Z",
        "status": "done",
        "source": "DB"
      },
      {
        "step": "ANCHORED",
        "label": "Document proof anchored on private chain 1337",
        "at": "2026-07-05T09:36:29.577Z",
        "status": "done",
        "source": "ON_CHAIN"
      }
    ]
  },
  "verificationChecklist": [
    {
      "item": "Asset identity recorded",
      "status": "PASS",
      "detail": "Asset metadata is present in the audit report."
    },
    {
      "item": "Document hash stored",
      "status": "PASS",
      "detail": "certificate-of-origin-demo.txt hash is stored off-chain."
    },
    {
      "item": "Document integrity status",
      "status": "PASS",
      "detail": "Current verification status is VALID."
    },
    {
      "item": "On-chain document proof",
      "status": "PASS",
      "detail": "Proof anchored on private chain 1337."
    },
    {
      "item": "Custody chain updated",
      "status": "WARN",
      "detail": "0 accepted custody transfers recorded (DB audited)."
    },
    {
      "item": "Operational risk alert",
      "status": "FAIL",
      "detail": "No risk alerts recorded."
    },
    {
      "item": "Combined audit timeline",
      "status": "WARN",
      "detail": "Timeline includes 3 entries across DB, on-chain and audited sources."
    }
  ],
  "limitations": [
    "TrustChain TRL7 pilot — audit-ready evidence, not production certification.",
    "Custody and risk events are DB audited in E11/E12; not all events are on-chain.",
    "Document bytes remain in private off-chain object storage; only hashes and proofs are verified here.",
    "PDF export is HTML print-ready in E13; native PDF generation is planned for a later phase."
  ],
  "environment": {
    "chainId": 1337,
    "phase": "e14",
    "publicUrl": "https://trustchain.ityes.co"
  }
}
