{
  "attribution": {
    "agentId": "agent-bank-of-z-operaciones",
    "initiatorUserId": "user-demo-back-office",
    "approverUserId": "user-demo-responsable-operaciones",
    "correlationId": "req-6f1d2c3e-8a47-4b2e-9c51-2e7a0b4d9f10"
  },
  "attributionGaps": [],
  "goal": "Registra el justificante de origen de fondos que ya ha llegado para TRX-RET-9002 y libera la transferencia.",
  "status": "completed",
  "createdAt": "2026-11-04T09:41:58.000Z",
  "launchPlace": "agents",
  "policyVersion": "7",
  "policyProvenance": {
    "source": "remote",
    "version": "7",
    "contentSha256": "e0d448d1756de21705299b15e53315b06588d9ce39aa81040b20508fb059d199",
    "floorSha256": "23a243fb739e4475a5bef28939d84ceadb6bab116ff2c8b4ef78234887f64693",
    "compilerVersion": "2026-05-17.manifest-v6",
    "manifestHash": "2910b6b1d7489e141af89190624857378aed915274cf28f8b48386afd7cd4543",
    "hitlApproverRule": "other_member"
  },
  "correlationId": "req-6f1d2c3e-8a47-4b2e-9c51-2e7a0b4d9f10",
  "steps": [
    {
      "stepId": "consultar-transferencia",
      "tool": "integration.endpoint.invoke",
      "status": "success",
      "timestamp": "2026-11-04T09:42:35.000Z",
      "durationMs": 412
    },
    {
      "stepId": "revisar-retencion",
      "tool": "integration.endpoint.invoke",
      "status": "success",
      "timestamp": "2026-11-04T09:42:38.000Z",
      "durationMs": 386
    },
    {
      "stepId": "registrar-justificante",
      "tool": "integration.endpoint.invoke",
      "status": "success",
      "timestamp": "2026-11-04T09:47:14.000Z",
      "durationMs": 534
    },
    {
      "stepId": "reintentar-transferencia",
      "tool": "integration.endpoint.invoke",
      "status": "success",
      "timestamp": "2026-11-04T09:48:01.000Z",
      "durationMs": 618
    }
  ],
  "pendingTasks": [
    {
      "approvalScope": "run",
      "id": "task-demo-plan",
      "stepId": "approval:free-goal-plan",
      "requesterUserId": "user-demo-back-office",
      "assigneeUserId": "user-demo-back-office",
      "resolvedBy": "user-demo-back-office",
      "decision": "approved",
      "gateKind": "approval",
      "comment": "Plan revisado: dos consultas y dos cambios, RTRY el último.",
      "breakGlass": false,
      "selfApproval": false,
      "createdAt": "2026-11-04T09:42:04.000Z",
      "doneAt": "2026-11-04T09:42:31.000Z"
    },
    {
      "approvalScope": "action",
      "id": "task-demo-rtdc",
      "stepId": "approval:action:registrar-justificante:e23737b7f0fe21a2",
      "requesterUserId": "user-demo-back-office",
      "assigneeUserId": "user-demo-responsable-operaciones",
      "resolvedBy": "user-demo-responsable-operaciones",
      "decision": "approved",
      "gateKind": "approval",
      "comment": "Justificante de origen de fondos revisado en la ficha del cliente. Adelante.",
      "breakGlass": false,
      "selfApproval": false,
      "approverRule": "other_member",
      "approverRuleSource": "system",
      "floorVersion": 3,
      "createdAt": "2026-11-04T09:42:41.000Z",
      "doneAt": "2026-11-04T09:47:12.000Z"
    },
    {
      "approvalScope": "action",
      "id": "task-demo-rtry",
      "stepId": "approval:action:reintentar-transferencia:5ff4ce51c3fc8f8d",
      "requesterUserId": "user-demo-back-office",
      "assigneeUserId": "user-demo-responsable-operaciones",
      "resolvedBy": "user-demo-responsable-operaciones",
      "decision": "approved",
      "gateKind": "approval",
      "comment": "No falta ningún documento. Libérala.",
      "breakGlass": false,
      "selfApproval": false,
      "approverRule": "other_member",
      "approverRuleSource": "system",
      "floorVersion": 3,
      "createdAt": "2026-11-04T09:47:15.000Z",
      "doneAt": "2026-11-04T09:47:58.000Z"
    }
  ],
  "connectorActionAudits": [
    {
      "id": "audit-demo-gtrx",
      "provider": "integration",
      "actionKey": "endpoint.invoke",
      "accountLabel": "m2m_gateway",
      "resultStatus": "executed",
      "principalType": "m2m_gateway",
      "identity": {
        "mode": "per_person",
        "actingAs": "LPRIETO"
      },
      "createdAt": "2026-11-04T09:42:35.000Z"
    },
    {
      "id": "audit-demo-gret",
      "provider": "integration",
      "actionKey": "endpoint.invoke",
      "accountLabel": "m2m_gateway",
      "resultStatus": "executed",
      "principalType": "m2m_gateway",
      "identity": {
        "mode": "per_person",
        "actingAs": "LPRIETO"
      },
      "createdAt": "2026-11-04T09:42:38.000Z"
    },
    {
      "id": "audit-demo-rtdc",
      "provider": "integration",
      "actionKey": "endpoint.invoke",
      "accountLabel": "m2m_gateway",
      "resultStatus": "executed",
      "principalType": "m2m_gateway",
      "identity": {
        "mode": "per_person",
        "actingAs": "LPRIETO"
      },
      "createdAt": "2026-11-04T09:47:14.000Z",
      "approval": {
        "gateId": "approval:action:registrar-justificante:e23737b7f0fe21a2",
        "approvedBy": "user-demo-responsable-operaciones",
        "decidedAt": "2026-11-04T09:47:12.000Z",
        "paramsHash": "e23737b7f0fe21a2aac075a49d9e3bb16c4bc14b6369c5b1be684b9321dffb81",
        "type": "por_accion"
      }
    },
    {
      "id": "audit-demo-rtry",
      "provider": "integration",
      "actionKey": "endpoint.invoke",
      "accountLabel": "m2m_gateway",
      "resultStatus": "executed",
      "principalType": "m2m_gateway",
      "identity": {
        "mode": "per_person",
        "actingAs": "LPRIETO"
      },
      "createdAt": "2026-11-04T09:48:01.000Z",
      "approval": {
        "gateId": "approval:action:reintentar-transferencia:5ff4ce51c3fc8f8d",
        "approvedBy": "user-demo-responsable-operaciones",
        "decidedAt": "2026-11-04T09:47:58.000Z",
        "paramsHash": "5ff4ce51c3fc8f8d6d9a95b78e83965766063384fd627493cf7b41f588125ada",
        "type": "por_accion"
      }
    }
  ],
  "planVersions": [
    {
      "version": 1,
      "steps": [
        {
          "stepId": "consultar-transferencia",
          "title": "Consultar la transferencia TRX-RET-9002",
          "description": "Estado, importe y cuentas de la transferencia con GTRX.",
          "actionKey": "GTRX"
        },
        {
          "stepId": "revisar-retencion",
          "title": "Revisar el motivo de la retención",
          "description": "Motivo de la retención y documentos que faltan con GRET.",
          "actionKey": "GRET"
        },
        {
          "stepId": "registrar-justificante",
          "title": "Registrar el justificante de origen de fondos",
          "description": "Anotar SOURCE_OF_FUNDS como recibido con RTDC.",
          "actionKey": "RTDC",
          "dependsOn": ["revisar-retencion"]
        },
        {
          "stepId": "reintentar-transferencia",
          "title": "Reintentar la transferencia",
          "description": "Liberarla con RTRY, el último paso, cuando no falte ningún documento.",
          "actionKey": "RTRY",
          "dependsOn": ["registrar-justificante"]
        }
      ],
      "author": {
        "kind": "model"
      },
      "hash": "73f640c5ed6544313b8bb0789015683d48f26bac07d5aaa082c4090ff5b814fe",
      "createdAt": "2026-11-04T09:42:03.000Z",
      "approval": {
        "gateId": "approval:free-goal-plan",
        "decision": "approved",
        "resolvedBy": "user-demo-back-office",
        "decidedAt": "2026-11-04T09:42:31.000Z",
        "comment": "Plan revisado: dos consultas y dos cambios, RTRY el último."
      }
    }
  ],
  "sessionConsents": [
    {
      "taskId": "task-demo-plan",
      "gateId": "approval:free-goal-plan",
      "resolvedBy": "user-demo-back-office",
      "decision": "approved",
      "doneAt": "2026-11-04T09:42:31.000Z"
    }
  ],
  "people": {
    "user-demo-back-office": {
      "name": "Lucía Prieto",
      "email": "lucia.prieto@bankofz.example"
    },
    "user-demo-responsable-operaciones": {
      "name": "Andrés Molina",
      "email": "andres.molina@bankofz.example"
    }
  }
}
