{
  "chainId": "echain_agent-auto-loop",
  "schemaVersion": 1,
  "scenario": "agent-automation-closed-loop",
  "title": "Agent automation closed loop MVP",
  "environment": "dev",
  "projectId": "prj_evidence-chain",
  "operationId": "op_agent-auto-loop-001",
  "traceId": "trc_agent-auto-loop-001",
  "gatewaySessionId": "gws_evidence-gateway-001",
  "agentSessionId": "ags_agent-auto-001",
  "workerSessionId": "wks_agent-auto-001",
  "resourceId": "res_boxsim-beta",
  "capabilityId": "cap_firmware-smoke",
  "hardwareOperation": {
    "operationId": "op_agent-auto-loop-001",
    "projectId": "prj_evidence-chain",
    "gatewaySessionId": "gws_evidence-gateway-001",
    "agentSessionId": "ags_agent-auto-001",
    "workerSessionId": "wks_agent-auto-001",
    "resourceId": "res_boxsim-beta",
    "capabilityId": "cap_firmware-smoke",
    "requestedBy": "wkr_agent-auto-001",
    "input": {
      "command": "firmware-smoke",
      "timeoutSeconds": 60
    },
    "output": {
      "exitCode": 0,
      "result": "passed"
    },
    "status": "succeeded",
    "environment": "dev",
    "requestedAt": "2026-05-21T00:20:02.000Z",
    "startedAt": "2026-05-21T00:20:03.000Z",
    "completedAt": "2026-05-21T00:20:05.000Z",
    "updatedAt": "2026-05-21T00:20:05.000Z"
  },
  "auditEvents": [
    {
      "auditId": "aud_agent-auto-operation-succeeded",
      "traceId": "trc_agent-auto-loop-001",
      "actorType": "service",
      "actorId": "svc_hwlab-box-simu",
      "action": "hardware.operation.succeeded",
      "targetType": "hardware_operation",
      "targetId": "op_agent-auto-loop-001",
      "projectId": "prj_evidence-chain",
      "gatewaySessionId": "gws_evidence-gateway-001",
      "workerSessionId": "wks_agent-auto-001",
      "operationId": "op_agent-auto-loop-001",
      "serviceId": "hwlab-box-simu",
      "environment": "dev",
      "outcome": "succeeded",
      "metadata": {
        "agentSessionId": "ags_agent-auto-001",
        "exitCode": 0
      },
      "occurredAt": "2026-05-21T00:20:05.000Z"
    }
  ],
  "traceEvents": [
    {
      "traceEventId": "tev_agent-auto-operation",
      "traceId": "trc_agent-auto-loop-001",
      "projectId": "prj_evidence-chain",
      "agentSessionId": "ags_agent-auto-001",
      "workerSessionId": "wks_agent-auto-001",
      "operationId": "op_agent-auto-loop-001",
      "serviceId": "hwlab-box-simu",
      "level": "info",
      "message": "Firmware smoke operation completed",
      "environment": "dev",
      "metadata": {
        "auditId": "aud_agent-auto-operation-succeeded"
      },
      "occurredAt": "2026-05-21T00:20:05.000Z"
    }
  ],
  "evidenceRecords": []
}
