{
  "reportId": "TC-AUDIT-BATT-2026-0001-2026-07-05T16-33-29-308Z",
  "generatedAt": "2026-07-05T16:33:29.308Z",
  "assetId": "BATT-2026-0001",
  "assetSummary": {
    "assetType": "EV Battery Module",
    "batchId": "BATCH-2026-07-A",
    "serialNumber": "SN-000001",
    "status": "FLAGGED",
    "issuer": {
      "id": "ORG-DEMO-SUPPLIER",
      "name": "Carpathian Cells SRL",
      "role": "SUPPLIER"
    },
    "createdAt": "2026-07-05T11:07:47.843Z",
    "auditSource": "DB"
  },
  "documentIntegrity": {
    "documents": [
      {
        "id": "13604fa4-759e-42b8-b2b9-26676850d751",
        "fileName": "certificate-of-origin-demo.txt",
        "documentType": "CERTIFICATE_OF_ORIGIN",
        "sha256": "0x8d8dd0a552c1131ab4ed2237e47454663124f67c747fd37c127e1bde31383e30",
        "verificationStatus": "TAMPERED",
        "anchored": true,
        "uploadedAt": "2026-07-05T13:19:41.467Z",
        "tamperedAt": "2026-07-05T13:19:45.652Z"
      }
    ],
    "overallStatus": "TAMPERED",
    "auditSource": "OFF_CHAIN_HASH"
  },
  "blockchainProofs": {
    "proofs": [
      {
        "id": "cmr7tiva40031qm01rb2380f0",
        "proofId": "0x0c7c18c42de4a659b2169b29ddcd3339e392249b679aade4d32284d17014b131",
        "hash": "0x8d8dd0a552c1131ab4ed2237e47454663124f67c747fd37c127e1bde31383e30",
        "chainId": 1337,
        "network": "trustchain-besu",
        "contractName": "EventLedger",
        "contractAddress": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
        "txHash": "0x17b5c264753f5eee41fc8f1affd2146efc02eaab33689ae26c77eea4d784943d",
        "blockNumber": 1616,
        "eventName": "ProofAnchored",
        "createdAt": "2026-07-05T13:19:45.628Z"
      }
    ],
    "auditSource": "ON_CHAIN"
  },
  "custodySummary": {
    "currentCustodian": {
      "actorId": "ORG-DEMO-MANUFACTURER",
      "name": "iTYES Mobility Lab",
      "role": "MANUFACTURER"
    },
    "transfers": [
      {
        "id": "cmr7tivbi0033qm012nc37s0o",
        "fromActorName": "Carpathian Cells SRL",
        "toActorName": "Danube Secure Logistics",
        "status": "ACCEPTED",
        "proposedAt": "2026-07-05T13:19:45.678Z",
        "decidedAt": "2026-07-05T13:19:45.683Z"
      },
      {
        "id": "cmr7tivbw0039qm01m6t7bmpg",
        "fromActorName": "Danube Secure Logistics",
        "toActorName": "iTYES Mobility Lab",
        "status": "ACCEPTED",
        "proposedAt": "2026-07-05T13:19:45.693Z",
        "decidedAt": "2026-07-05T13:19:45.697Z"
      }
    ],
    "transferCount": 2,
    "auditSource": "DB_AUDITED"
  },
  "riskSummary": {
    "threshold": "2C-8C",
    "readingCount": 4,
    "alertCount": 1,
    "openAlertCount": 0,
    "alerts": [
      {
        "id": "cmr7tivcw003vqm01x7juyo0s",
        "riskType": "TEMPERATURE_BREACH",
        "severity": "HIGH",
        "status": "ACKNOWLEDGED",
        "summary": "Temperature breach detected: 9.4C outside 2C-8C",
        "threshold": "2C-8C",
        "actualValue": 9.4,
        "unit": "C",
        "createdAt": "2026-07-05T13:19:45.728Z"
      }
    ],
    "auditSource": "DB_AUDITED"
  },
  "timeline": {
    "entries": [
      {
        "step": "CREATED",
        "label": "Asset registered by Carpathian Cells SRL",
        "at": "2026-07-05T11:07:47.843Z",
        "status": "done",
        "source": "DB"
      },
      {
        "step": "CERTIFIED",
        "label": "Certificate hash stored and verified",
        "at": "2026-07-05T13:19:41.467Z",
        "status": "done",
        "source": "DB"
      },
      {
        "step": "ANCHORED",
        "label": "Document proof anchored on private chain 1337",
        "at": "2026-07-05T13:19:45.628Z",
        "status": "done",
        "source": "ON_CHAIN"
      },
      {
        "step": "TAMPER_DETECTED",
        "label": "Document hash mismatch detected off-chain",
        "at": "2026-07-05T13:19:45.652Z",
        "status": "done",
        "source": "DB"
      },
      {
        "step": "CUSTODY_ACCEPTED",
        "label": "Carpathian Cells SRL → Danube Secure Logistics (ACCEPTED)",
        "at": "2026-07-05T13:19:45.683Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "CUSTODY_ACCEPTED",
        "label": "Danube Secure Logistics → iTYES Mobility Lab (ACCEPTED)",
        "at": "2026-07-05T13:19:45.697Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "TEMPERATURE 5.5C (DB audited)",
        "at": "2026-07-05T13:19:45.710Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "TEMPERATURE 5.5C at Checkpoint Danube Hub · Danube Secure Logistics",
        "at": "2026-07-05T13:19:45.713Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "HUMIDITY 42% (DB audited)",
        "at": "2026-07-05T13:19:45.715Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "HUMIDITY 42% at Checkpoint Danube Hub · Danube Secure Logistics",
        "at": "2026-07-05T13:19:45.717Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "TEMPERATURE 6.8C (DB audited)",
        "at": "2026-07-05T13:19:45.719Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "TEMPERATURE 6.8C at Checkpoint Danube Hub · Danube Secure Logistics",
        "at": "2026-07-05T13:19:45.722Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_BREACH",
        "label": "TEMPERATURE 9.4C (DB audited)",
        "at": "2026-07-05T13:19:45.724Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "IOT_READING",
        "label": "TEMPERATURE 9.4C at Checkpoint Danube Hub · Danube Secure Logistics",
        "at": "2026-07-05T13:19:45.727Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "RISK_ALERT",
        "label": "HIGH TEMPERATURE_BREACH: Temperature breach detected: 9.4C outside 2C-8C",
        "at": "2026-07-05T13:19:45.728Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "RISK_ALERT",
        "label": "Temperature breach detected: 9.4C outside 2C-8C · Danube Secure Logistics",
        "at": "2026-07-05T13:19:45.732Z",
        "status": "done",
        "source": "DB_AUDITED"
      },
      {
        "step": "CLAIM_SUBMITTED",
        "label": "QA_CLAIM: E20 QA claim · Carpathian Cells SRL",
        "at": "2026-07-05T15:55:04.719Z",
        "status": "done",
        "source": "DB_AUDITED"
      }
    ]
  },
  "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": "WARN",
      "detail": "Current verification status is TAMPERED."
    },
    {
      "item": "On-chain document proof",
      "status": "PASS",
      "detail": "Proof anchored on private chain 1337."
    },
    {
      "item": "Custody chain updated",
      "status": "PASS",
      "detail": "2 accepted custody transfers recorded (DB audited)."
    },
    {
      "item": "Operational risk alert",
      "status": "PASS",
      "detail": "Latest alert: TEMPERATURE_BREACH / HIGH."
    },
    {
      "item": "Combined audit timeline",
      "status": "PASS",
      "detail": "Timeline includes 17 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 off-chain in MinIO; 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"
  }
}
