Files
pikasTech-HWLAB/protocol/examples/evidence-chain/fixtures/hardware-trusted-loop.json
T
2026-05-21 15:04:53 +00:00

183 lines
6.0 KiB
JSON

{
"chainId": "echain_hw-trusted-loop",
"schemaVersion": 1,
"scenario": "hardware-trusted-closed-loop",
"title": "Hardware trusted closed loop MVP",
"environment": "dev",
"projectId": "prj_evidence-chain",
"operationId": "op_hw-trusted-loop-001",
"traceId": "trc_hw-trusted-loop-001",
"gatewaySessionId": "gws_evidence-gateway-001",
"resourceId": "res_boxsim-alpha",
"capabilityId": "cap_gpio-measure",
"hardwareOperation": {
"operationId": "op_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"gatewaySessionId": "gws_evidence-gateway-001",
"resourceId": "res_boxsim-alpha",
"capabilityId": "cap_gpio-measure",
"requestedBy": "usr_alice",
"input": {
"command": "measure",
"port": "gpio0"
},
"output": {
"sampleCount": 1,
"result": "logic-high"
},
"status": "succeeded",
"environment": "dev",
"requestedAt": "2026-05-21T00:10:00.000Z",
"startedAt": "2026-05-21T00:10:01.000Z",
"completedAt": "2026-05-21T00:10:03.000Z",
"updatedAt": "2026-05-21T00:10:03.000Z"
},
"auditEvents": [
{
"auditId": "aud_hw-trusted-requested",
"traceId": "trc_hw-trusted-loop-001",
"actorType": "user",
"actorId": "usr_alice",
"action": "hardware.operation.requested",
"targetType": "hardware_operation",
"targetId": "op_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"gatewaySessionId": "gws_evidence-gateway-001",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-cloud-api",
"environment": "dev",
"outcome": "accepted",
"metadata": {
"requestId": "req_hw-trusted-001"
},
"occurredAt": "2026-05-21T00:10:00.000Z"
},
{
"auditId": "aud_hw-trusted-dispatched",
"traceId": "trc_hw-trusted-loop-001",
"actorType": "service",
"actorId": "svc_hwlab-gateway-simu",
"action": "hardware.operation.dispatched",
"targetType": "hardware_operation",
"targetId": "op_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"gatewaySessionId": "gws_evidence-gateway-001",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-gateway-simu",
"environment": "dev",
"outcome": "accepted",
"metadata": {
"resourceId": "res_boxsim-alpha",
"capabilityId": "cap_gpio-measure"
},
"occurredAt": "2026-05-21T00:10:01.000Z"
},
{
"auditId": "aud_hw-trusted-succeeded",
"traceId": "trc_hw-trusted-loop-001",
"actorType": "service",
"actorId": "svc_hwlab-box-simu",
"action": "hardware.operation.succeeded",
"targetType": "hardware_operation",
"targetId": "op_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"gatewaySessionId": "gws_evidence-gateway-001",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-box-simu",
"environment": "dev",
"outcome": "succeeded",
"metadata": {
"sampleCount": 1
},
"occurredAt": "2026-05-21T00:10:03.000Z"
},
{
"auditId": "aud_hw-trusted-evidence-recorded",
"traceId": "trc_hw-trusted-loop-001",
"actorType": "service",
"actorId": "svc_hwlab-cloud-api",
"action": "evidence.recorded",
"targetType": "evidence_record",
"targetId": "evd_hw-trusted-measurement",
"projectId": "prj_evidence-chain",
"gatewaySessionId": "gws_evidence-gateway-001",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-cloud-api",
"environment": "dev",
"outcome": "succeeded",
"metadata": {
"evidenceId": "evd_hw-trusted-measurement",
"evidenceKind": "measurement"
},
"occurredAt": "2026-05-21T00:10:04.000Z"
}
],
"traceEvents": [
{
"traceEventId": "tev_hw-trusted-accepted",
"traceId": "trc_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-cloud-api",
"level": "info",
"message": "Hardware operation accepted",
"environment": "dev",
"metadata": {
"auditId": "aud_hw-trusted-requested"
},
"occurredAt": "2026-05-21T00:10:00.000Z"
},
{
"traceEventId": "tev_hw-trusted-dispatched",
"traceId": "trc_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-gateway-simu",
"level": "info",
"message": "Gateway dispatched trusted measurement",
"environment": "dev",
"metadata": {
"auditId": "aud_hw-trusted-dispatched"
},
"occurredAt": "2026-05-21T00:10:01.000Z"
},
{
"traceEventId": "tev_hw-trusted-evidence",
"traceId": "trc_hw-trusted-loop-001",
"projectId": "prj_evidence-chain",
"operationId": "op_hw-trusted-loop-001",
"serviceId": "hwlab-cloud-api",
"level": "info",
"message": "Measurement evidence persisted",
"environment": "dev",
"metadata": {
"auditId": "aud_hw-trusted-evidence-recorded",
"evidenceId": "evd_hw-trusted-measurement"
},
"occurredAt": "2026-05-21T00:10:04.000Z"
}
],
"evidenceRecords": [
{
"evidenceId": "evd_hw-trusted-measurement",
"projectId": "prj_evidence-chain",
"operationId": "op_hw-trusted-loop-001",
"kind": "measurement",
"uri": "protocol/examples/evidence-chain/artifacts/hardware-trusted-measurement.json",
"mimeType": "application/json",
"sha256": "da1bb981f0a966e6906bfdf6a0387180617c8f891c131d7bebf9e19b14989a99",
"sizeBytes": 318,
"serviceId": "hwlab-cloud-api",
"environment": "dev",
"metadata": {
"traceId": "trc_hw-trusted-loop-001",
"producedByAuditId": "aud_hw-trusted-evidence-recorded",
"producerServiceId": "hwlab-box-simu",
"resourceId": "res_boxsim-alpha",
"capabilityId": "cap_gpio-measure"
},
"createdAt": "2026-05-21T00:10:04.000Z"
}
]
}