{
  "gate": "pass",
  "completed_count": 3,
  "duplicate_count": 1,
  "waiting_approval_count": 1,
  "effect_ledger": {
    "user-42:create-ticket:access": "EFF-0001"
  },
  "unique_effects": true,
  "trace_complete_rate": 1.0,
  "runs": [
    {
      "run_id": "4931f2d6-96db-48b2-9832-d59e3914237f",
      "state": "COMPLETED",
      "decision": "completado",
      "route": "support_ticket",
      "effect": {
        "created": true,
        "effect_id": "EFF-0001",
        "reason": "new_effect"
      },
      "trace": {
        "trace_id": "9fe871d9-274e-44d9-9e6c-409da7773ab8",
        "request_id": "req-001",
        "spans": [
          {
            "name": "run.started",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "run_id": "4931f2d6-96db-48b2-9832-d59e3914237f"
            }
          },
          {
            "name": "route.decision",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "route": "support_ticket",
              "effect": "persistent_write",
              "tool": "create_ticket"
            }
          },
          {
            "name": "tool.call",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "tool": "create_ticket",
              "route": "support_ticket"
            }
          },
          {
            "name": "tool.result",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "tool": "create_ticket",
              "created": true,
              "effect_id": "EFF-0001",
              "reason": "new_effect"
            }
          },
          {
            "name": "run.completed",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "state": "COMPLETED"
            }
          }
        ]
      }
    },
    {
      "run_id": "4931f2d6-96db-48b2-9832-d59e3914237f",
      "state": "DUPLICATE",
      "decision": "no repetir efecto",
      "trace": {
        "trace_id": "c5d4d765-2b15-4f91-b086-4f35cec4f8cc",
        "request_id": "req-002",
        "spans": [
          {
            "name": "run.duplicate",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "original_run_id": "4931f2d6-96db-48b2-9832-d59e3914237f",
              "idempotency_key": "user-42:create-ticket:access"
            }
          }
        ]
      }
    },
    {
      "run_id": "2c1da265-82cb-4024-afa3-a2c26fa7f1df",
      "state": "WAITING_APPROVAL",
      "decision": "esperando aprobación",
      "route": "guide_update",
      "effect": null,
      "trace": {
        "trace_id": "59d2bba1-618f-4a6b-b704-16aa38b21f7d",
        "request_id": "req-003",
        "spans": [
          {
            "name": "run.started",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "run_id": "2c1da265-82cb-4024-afa3-a2c26fa7f1df"
            }
          },
          {
            "name": "route.decision",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "route": "guide_update",
              "effect": "persistent_write",
              "tool": "prepare_guide_diff"
            }
          },
          {
            "name": "approval.required",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "route": "guide_update",
              "reason": "persistent_write"
            }
          }
        ]
      }
    },
    {
      "run_id": "42062d7a-64e5-4264-96fd-999a9803286e",
      "state": "COMPLETED",
      "decision": "completado",
      "route": "reference_flow",
      "effect": {
        "answer": "referencia validada con fuente y formato APA",
        "source_checked": true
      },
      "trace": {
        "trace_id": "eb4c639f-a354-4a4c-becc-bdcb218bedcc",
        "request_id": "req-004",
        "spans": [
          {
            "name": "run.started",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "run_id": "42062d7a-64e5-4264-96fd-999a9803286e"
            }
          },
          {
            "name": "route.decision",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "route": "reference_flow",
              "effect": "read",
              "tool": "validate_reference"
            }
          },
          {
            "name": "tool.call",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "tool": "validate_reference",
              "route": "reference_flow"
            }
          },
          {
            "name": "tool.result",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "tool": "validate_reference",
              "answer": "referencia validada con fuente y formato APA",
              "source_checked": true
            }
          },
          {
            "name": "run.completed",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "state": "COMPLETED"
            }
          }
        ]
      }
    },
    {
      "run_id": "ed3428f0-5d79-428d-a8dc-4fffa6fdb40a",
      "state": "COMPLETED",
      "decision": "completado",
      "route": "data_flow",
      "effect": {
        "answer": "Norte: 2; Centro: 1",
        "query_id": "payments_by_campus_v1"
      },
      "trace": {
        "trace_id": "5397cca2-bb0a-4601-8851-6cc5b85f28cf",
        "request_id": "req-005",
        "spans": [
          {
            "name": "run.started",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "run_id": "ed3428f0-5d79-428d-a8dc-4fffa6fdb40a"
            }
          },
          {
            "name": "route.decision",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "route": "data_flow",
              "effect": "read",
              "tool": "query_payments"
            }
          },
          {
            "name": "tool.call",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "tool": "query_payments",
              "route": "data_flow"
            }
          },
          {
            "name": "tool.result",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "tool": "query_payments",
              "answer": "Norte: 2; Centro: 1",
              "query_id": "payments_by_campus_v1"
            }
          },
          {
            "name": "run.completed",
            "timestamp_ms": 1781434995130,
            "attrs": {
              "state": "COMPLETED"
            }
          }
        ]
      }
    }
  ]
}
